q5play
    Preparing search index...

    Function rotate

    • 🦋 Rotates the drawing context.

      Parameters

      • angle: number

        rotation angle in radians

      Returns void

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

      rotate(mouseX / 50);

      rectMode(CENTER);
      square(0, 0, 120);
      };