$setTransform
Resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.
Usage
$setTransform[canvas;a;b;c;d;e;f]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| canvas | String | Name of the canvas to set the transformation in. | True |
| a | Number | The cell in the first row and first column of the matrix. | True |
| b | Number | The cell in the second row and first column of the matrix. | True |
| c | Number | The cell in the first row and second column of the matrix. | True |
| d | Number | The cell in the second row and second column of the matrix. | True |
| e | Number | The cell in the first row and third column of the matrix. | True |
| f | Number | The cell in the second row and third column of the matrix. | True |
Example(s)
No examples for this function.

Raw Info
{ "name": "$setTransform", "description": "Resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.", "params": [ { "name": "canvas", "description": "Name of the canvas to set the transformation in.", "type": "String", "required": true }, { "name": "a", "description": "The cell in the first row and first column of the matrix.", "type": "Number", "required": true }, { "name": "b", "description": "The cell in the second row and first column of the matrix.", "type": "Number", "required": true }, { "name": "c", "description": "The cell in the first row and second column of the matrix.", "type": "Number", "required": true }, { "name": "d", "description": "The cell in the second row and second column of the matrix.", "type": "Number", "required": true }, { "name": "e", "description": "The cell in the first row and third column of the matrix.", "type": "Number", "required": true }, { "name": "f", "description": "The cell in the second row and third column of the matrix.", "type": "Number", "required": true } ], "usage": "$setTransform[canvas;a;b;c;d;e;f]", "category": "canvas", "src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/setTransform.ts", "docs": "https://aoicanvas.vercel.app/functions/settransform"}