Py5Shape.no_tint()

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

Examples

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

    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 Java method: PShape.noTint

Syntax

no_tint() -> None

Updated on September 11, 2021 16:51:34pm UTC