December 2010
Intermediate to advanced
110 pages
2h 31m
English
CRC.rotate() — adds a rotation to current transform
void rotate(float angle)angleThe rotation, in radians. Positive values result in clockwise rotation, and negative values result in counterclockwise rotation.
This method alters the current transformation matrix so that any
subsequent drawing appears rotated within the canvas by the specified
angle. It does not rotate the <canvas> element
itself. Note that the angle is specified in radians. To convert degrees
to radians, multiply by Math.PI and divide by
180.
Read now
Unlock full access