q5play
    Preparing search index...

    Function scale

    • 🦋 Scales the drawing context.

      If only one input parameter is provided, the drawing context will be scaled uniformly.

      Parameters

      • x: number

        scaling factor along the x-axis

      • Optionaly: number

        scaling factor along the y-axis

      Returns void

      q5.draw = function () {
      background(0.8);

      scale(mouseX / 10);
      circle(0, 0, 20);
      };