Skip to content

Line Join

Christopher Ross-Gill edited this page Aug 1, 2016 · 1 revision

LINE-JOIN

Sets the style that will be used where lines are joined.

Arg Type Description Values
mode [word!] Join style miter miter-bevel round bevel

Notes and Examples

pen yellow line-width 15

line-join miter polygon 20x20 180x130 10x100

translate 0x140

line-join miter-bevel polygon 20x20 180x130 10x100

translate 200x-140

line-join round polygon 20x20 180x130 10x100

translate 0x140 line-join bevel polygon 20x20 180x130 10x100


Additional notes about LINE-CAP and LINE-JOIN

How are lines drawn

LINE - draws single lines (even if multiple line points is specified)
SPLINE - draws 'connected' lines but the 'head' and 'tail' is splitted (until you specify CLOSED keyword)
POLYGON - always draws 'connected' lines in form of closed shape

What does LINE-CAP and LINE-JOIN

LINE - shape of 'head' and 'tail' is affected by LINE-CAP mode
SPLINE - shape of 'line joins' is affected by LINE-JOIN mode
		 if CLOSED is defined shape of 'head' and 'tail' is affected by LINE-CAP mode
POLYGON - shape of all 'line joins' is affected by LINE-JOIN mode
Clone this wiki locally