texture()

Image / Textures

Description

Sets a texture to be applied to vertex points. Must be called between beginShape() and endShape().

Syntax

void texture(PImage& img)

Parameters

NameTypeDescription
imgPImageimage to use as texture

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...