Py5Shape.no_fill()#

Disables the Py5Shape object’s filling geometry.

Examples#

example picture for no_fill()
 1def setup():
 2    s = py5.create_shape()
 3    s.begin_shape()
 4    s.no_fill()
 5    s.vertex(20, 80)
 6    s.vertex(50, 20)
 7    s.vertex(80, 80)
 8    s.end_shape(py5.CLOSE)
 9
10    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

Syntax#

no_fill() -> None

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