Rotates the coordinate system about the y-axis in WebGL mode.
The parameter, angle
, is the amount to rotate. For example, calling rotateY(1)
rotates the coordinate system about the y-axis by 1 radian. rotateY()
interprets angle values using the current angleMode().
By default, transformations accumulate. For example, calling rotateY(1)
twice has the same effect as calling rotateY(2)
once. The push() and pop() functions can be used to isolate transformations within distinct drawing groups.
Note: Transformations are reset at the beginning of the draw loop. Calling rotateY(1)
inside the draw() function won't cause shapes to spin.
Examples
Syntax
rotateY(angle)
Parameters
angle
angle of rotation in the current angleMode().
Notice any errors or typos? Please let us know. Please feel free to edit src/core/transform.js and open a pull request!