Skip to content

$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

FieldTypeDescriptionRequired
canvasStringName of the canvas to set the transformation in.True
aNumberThe cell in the first row and first column of the matrix.True
bNumberThe cell in the second row and first column of the matrix.True
cNumberThe cell in the first row and second column of the matrix.True
dNumberThe cell in the second row and second column of the matrix.True
eNumberThe cell in the first row and third column of the matrix.True
fNumberThe cell in the second row and third column of the matrix.True

Example(s)

No examples for this function.

meow

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"
}