[Go to site: main page, start]

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();
    Image output for example 1Image output for example 1
  • size(400, 400);
    noFill();
    strokeWeight(40.0);
    strokeJoin(BEVEL);
    beginShape();
    vertex(140, 80);
    vertex(260, 200);
    vertex(140, 320);
    endShape();
    Image output for example 2Image output for example 2
  • size(400, 400);
    noFill();
    strokeWeight(40.0);
    strokeJoin(ROUND);
    beginShape();
    vertex(140, 80);
    vertex(260, 200);
    vertex(140, 320);
    endShape();
    Image output for example 3Image output for example 3

Syntax

  • strokeJoin(join)

Parameters

  • join(int)either MITER, BEVEL, ROUND

Return

  • void