stroke_join()#

Sets the style of the joints which connect line segments.

Examples#

example picture for stroke_join()
1def setup():
2    py5.no_fill()
3    py5.stroke_weight(10.0)
4    py5.stroke_join(py5.MITER)
5    py5.begin_shape()
6    py5.vertex(35, 20)
7    py5.vertex(65, 50)
8    py5.vertex(35, 80)
9    py5.end_shape()
example picture for stroke_join()
1def setup():
2    py5.no_fill()
3    py5.stroke_weight(10.0)
4    py5.stroke_join(py5.BEVEL)
5    py5.begin_shape()
6    py5.vertex(35, 20)
7    py5.vertex(65, 50)
8    py5.vertex(35, 80)
9    py5.end_shape()
example picture for stroke_join()
1def setup():
2    py5.no_fill()
3    py5.stroke_weight(10.0)
4    py5.stroke_join(py5.ROUND)
5    py5.begin_shape()
6    py5.vertex(35, 20)
7    py5.vertex(65, 50)
8    py5.vertex(35, 80)
9    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

Syntax#

stroke_join(join: int, /) -> None

Parameters#

  • join: int - either MITER, BEVEL, ROUND

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