no_fill()

Disables filling geometry.

Examples

example picture for no_fill()
1
2
3
4
def setup():
    py5.rect(15, 10, 55, 55)
    py5.no_fill()
    py5.rect(30, 20, 55, 55)

Description

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

Underlying Java method: noFill

Syntax

no_fill() -> None

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