$rotation
Sets the rotation in the canvas.
Usage
$rotation[canvas;angle]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| canvas | String | Name of the canvas. | True |
| angle | Number | The rotation angle. | True |
Example(s)
No examples for this function.

Raw Info
{ "name": "$rotation", "description": "Sets the rotation in the canvas.", "params": [ { "name": "canvas", "description": "Name of the canvas.", "type": "String", "required": true }, { "name": "angle", "description": "The rotation angle.", "type": "Number", "required": true } ], "usage": "$rotation[canvas;angle]", "category": "canvas", "src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/rotation.ts", "docs": "https://aoicanvas.vercel.app/functions/rotation"}