Reference+
Name
strokeJoin()
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.
Examples
size(400, 400); noFill(); strokeWeight(40.0); strokeJoin(MITER); beginShape(); vertex(140, 80); vertex(260, 200); vertex(140, 320); endShape();
size(400, 400); noFill(); strokeWeight(40.0); strokeJoin(BEVEL); beginShape(); vertex(140, 80); vertex(260, 200); vertex(140, 320); endShape();
size(400, 400); noFill(); strokeWeight(40.0); strokeJoin(ROUND); beginShape(); vertex(140, 80); vertex(260, 200); vertex(140, 320); endShape();
Syntax
strokeJoin(join)
Parameters
join
(int)
either MITER, BEVEL, ROUND
Return
void
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.