q5play
    Preparing search index...

    Function strokeJoin

    • 💅 Set the line join style to ROUND or MITER.

      The default is MITER.

      Parameters

      • val: CanvasLineJoin

        line join style

      Returns void

      await Canvas(200);
      background(0.8);
      strokeWeight(10);

      strokeJoin(ROUND);
      triangle(-50, -30, 50, -30, -50, 20);

      strokeJoin(MITER);
      triangle(50, 0, -50, 50, 50, 50);