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 Java method: noStroke

Syntax

no_stroke() -> None

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