rotate
Rotates the canvas coordinate system.
Declaration
void rotate(
unrestricted float angle
);Parameters
- angle:
The amount of rotation, in radians, clockwise.
Discussion
Changes to the coordinate system affect subsequent drawing operations, but do not affect anything already drawn. Rotation is clockwise around the origin, which by default is the upper-left corner.