stroke_join()#

Sets the style of the joints which connect line segments.

Examples#

example picture for stroke_join()

def setup():
    py5.no_fill()
    py5.stroke_weight(10.0)
    py5.stroke_join(py5.MITER)
    py5.begin_shape()
    py5.vertex(35, 20)
    py5.vertex(65, 50)
    py5.vertex(35, 80)
    py5.end_shape()

example picture for stroke_join()

def setup():
    py5.no_fill()
    py5.stroke_weight(10.0)
    py5.stroke_join(py5.BEVEL)
    py5.begin_shape()
    py5.vertex(35, 20)
    py5.vertex(65, 50)
    py5.vertex(35, 80)
    py5.end_shape()

example picture for stroke_join()

def setup():
    py5.no_fill()
    py5.stroke_weight(10.0)
    py5.stroke_join(py5.ROUND)
    py5.begin_shape()
    py5.vertex(35, 20)
    py5.vertex(65, 50)
    py5.vertex(35, 80)
    py5.end_shape()

Description#

Sets the style of the joints which connect line segments. These joints are either mitered, beveled, or rounded and specified with the corresponding parameters MITER, BEVEL, and ROUND. The default joint is MITER.

Underlying Processing method: strokeJoin

Signatures#

stroke_join(
    join: int,  # either MITER, BEVEL, ROUND
    /,
) -> None

Updated on March 06, 2023 02:49:26am UTC