no_stroke()

Disables drawing the stroke (outline).

Examples

example picture for no_stroke()
1
2
3
def setup():
    py5.no_stroke()
    py5.rect(30, 20, 55, 55)

Description

Disables drawing the stroke (outline). If both no_stroke() and no_fill() are called, nothing will be drawn to the screen.

Underlying Processing method: noStroke

Syntax

no_stroke() -> None

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