JavaScript canvas2d object method: rotate()
[this page | pdf | back links]
The rotate()
method of the JavaScript
DOM object
returned by the getContext("2d")
method applied to the HTML <canvas>
element rotates the current drawing. It only affects drawings made after the
rotation is applied
It has the following
syntax with the following parameters.
context.rotate(angle)
|
Parameter
|
Required / Optional
|
Description
|
|
angle
|
Required
|
Angle in radians
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)