Py5Shape.no_stroke()#
Disables the Py5Shape
object’s stroke (outline).
Examples#
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
Signatures#
no_stroke() -> None
Updated on March 06, 2023 02:49:26am UTC