Name

textureWrap()

Examples
size(150, 150, P2D)
img = loadImage("rockies.jpg")
textureMode(NORMAL)

background(0)
textureWrap(REPEAT)
beginShape()
texture(img)
vertex(0, 0, 0, 0)
vertex(150, 0, 2, 0)
vertex(150, 150, 2, 2)
vertex(0, 150, 0, 2)
endShape()
size(150, 150, P2D)
img = loadImage("rockies.jpg")
textureMode(NORMAL)

background(0)
textureWrap(CLAMP)
beginShape()
texture(img)
vertex(0, 0, 0, 0)
vertex(150, 0, 2, 0)
vertex(150, 150, 2, 2)
vertex(0, 150, 0, 2)
endShape()
Description
Syntax
Parameters
mode
Related texture()
textureMode()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License