Py5Shape.no_stroke()#

Disables the Py5Shape object’s stroke (outline).

Examples#

example picture for no_stroke()
 1def setup():
 2    s = py5.create_shape()
 3    s.begin_shape()
 4    s.no_stroke()
 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 stroke (outline). If both no_stroke() and Py5Shape.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.noStroke

Syntax#

no_stroke() -> None

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