🦋 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.
draw
await Canvas(200);background(0.8);translate(50, 50);circle(0, 0, 80);resetMatrix();square(0, 0, 50); Copy
await Canvas(200);background(0.8);translate(50, 50);circle(0, 0, 80);resetMatrix();square(0, 0, 50);
🦋 Resets the transformation matrix.
q5 runs this function before every time the
drawfunction is run, so that transformations don't carry over to the next frame.