Name

texture

Description Sets a texture to be applied to vertex points. The texture() function must be called between beginShape() and endShape() and before any calls to vertex(). This function only works with the P2D and P3D renderers.

When textures are in use, the fill color is ignored. Instead, use tint() to specify the color of the texture as it is applied to the shape.
Syntax
Related textureMode
textureWrap
PShape_beginShape
PShape_endShape
vertex
Creative Commons License