rotate()
Rotates the entire coordinate system around the origin
Last updated
Rotates the entire coordinate system around the origin
Last updated
rotate(angle)
angle
the angle of rotation in radians/degrees depending on angle mode
What is actually happening in the above example is 👇
The rotate()
function is used to rotate the coordinate system by a specified angle about the current origin. This means that any subsequent drawing or transformation function will be affected by this rotation.
Positive angles will rotate the plane from +x to +y, so:
In BOTTOM_RIGHT
coordinate system, positive angles rotate counter-clockwise.
In BOTTOM_LEFT
coordinate system, positive angles rotate clockwise.
Negative angles rotate the plane from +x to -y
Find these documents helpful? Let the people who made them help your child learn to code at Strivemath!
We'd love to hear your Feedback/Comments here.