Py5Shape.no_stroke()
Contents
Py5Shape.no_stroke()¶
Disables the Py5Shape
object’s stroke (outline).
Examples¶

1 2 3 4 5 6 7 8 9 10 | def setup():
s = py5.create_shape()
s.begin_shape()
s.no_stroke()
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 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