Py5Shape.no_fill()

Disables the Py5Shape object’s filling geometry.

Examples

example picture for no_fill()
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 Java method: PShape.noFill

Syntax

no_fill() -> None

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