q5play
    Preparing search index...

    Function translate

    • 🦋 Translates the origin of the drawing context.

      Parameters

      • x: number

        translation along the x-axis

      • y: number

        translation along the y-axis

      Returns void

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

      translate(50, 50);
      circle(0, 0, 80);
      };