q5play
    Preparing search index...

    Function point

    • 🧑‍🎨 Draws a point on the canvas.

      Parameters

      • x: number

        x-coordinate

      • y: number

        y-coordinate

      Returns void

      await Canvas(200, 100);
      stroke('white');
      point(-25, 0);

      strokeWeight(10);
      point(25, 0);