Py5Shape.no_fill()#

Disables the Py5Shape object’s filling geometry.

Examples#

example picture for no_fill()

def setup():
    s = py5.create_shape()
    s.begin_shape()
    s.no_fill()
    s.vertex(20, 80)
    s.vertex(50, 20)
    s.vertex(80, 80)
    s.end_shape(py5.CLOSE)

    py5.shape(s)

Description#

Disables the Py5Shape object’s filling geometry. If both Py5Shape.no_stroke() and no_fill() are called, nothing will be drawn to the screen.

This method can only be used within a Py5Shape.begin_shape() and Py5Shape.end_shape() pair.

Underlying Processing method: PShape.noFill

Signatures#

no_fill() -> None

Updated on March 06, 2023 02:49:26am UTC