References
Shapes
Line & Curves
Transformations
- translate - move the context.
- rotate - rotate the context.
- pointRotate - rotate the context around the given location.
- scale - scale the context.
- save - save the context.
- restore - restore the context.
Mouse
- mouseX - the mouse x-coordinate.
- mouseY - the mouse y-coordinate.
- onMousePress - mouse press event.
- onMouseReleased - mouse released event.
Random
- random - generate a random number.
- random2 - generate a random number between two numbers.
Math
- radians - convert a degree angle in radian. Useful for rotations.
- NCL2dLocation - a 2d location object. Used into several functions like "pointRotate".
Render Options
- clear - clear the screen. (useful for animation).
- setFullscreen - adapt the canvas to the viewport.
Aucun commentaire:
Enregistrer un commentaire