Py5Shape.no_tint()#

Stop applying a color tint to a shape’s texture map.

Examples#

example picture for no_tint()
 1def setup():
 2    py5.size(100, 100, py5.P2D)
 3    img = py5.load_image("tower.jpg")
 4    s = py5.create_shape()
 5    s.begin_shape()
 6    s.texture(img)
 7    s.tint(0, 0, 255)
 8    s.vertex(20, 20, 0, 0)
 9    s.vertex(20, 80, 0, 100)
10    s.no_tint()
11    s.vertex(80, 80, 100, 100)
12    s.vertex(80, 20, 100, 0)
13    s.end_shape(py5.CLOSE)
14
15    py5.shape(s)

Description#

Stop applying a color tint to a shape’s texture map. Use Py5Shape.tint() to start applying a color tint.

Both Py5Shape.tint() and no_tint() can be used to control the coloring of textures in 3D.

Underlying Processing method: PShape.noTint

Syntax#

no_tint() -> None

Updated on November 12, 2021 11:30:58am UTC