25.34. CanvasRenderingContext2D.rotate( ): rotate the coordinate system of the canvas25.34.1. Synopsisvoid rotate(float angle) 25.34.1.1. Arguments
25.34.2. DescriptionThis method alters the mapping between canvas coordinates and the pixels of the <canvas> element in the web browser 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. 25.34.3. See AlsoCanvasRenderingContext2D.scale( ), CanvasRenderingContext2D.translate( ) |