q5play
    Preparing search index...

    Function resetMatrix

    • 🦋 Resets the transformation matrix.

      q5 runs this function before every time the draw function is run, so that transformations don't carry over to the next frame.

      Returns void

      await Canvas(200);
      background(0.8);

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

      resetMatrix();
      square(0, 0, 50);