q5play
    Preparing search index...

    Function strokeWeight

    • 💅 Sets the size of the stroke used for lines and the border around drawings.

      Parameters

      • weight: number

        size of the stroke in pixels

      Returns void

      await Canvas(200);
      background(0.8);
      stroke('red');
      circle(-50, 0, 80);

      strokeWeight(12);
      circle(50, 0, 80);