Skip to content

$transform

Multiplies the current transformation with the matrix described by the arguments of this method.

Usage

$transform[canvas;a;b;c;d;e;f]

Parameters

FieldTypeDescriptionRequired
canvasStringName of the canvas to transform.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": "$transform",
"description": "Multiplies the current transformation with the matrix described by the arguments of this method.",
"params": [
{
"name": "canvas",
"description": "Name of the canvas to transform.",
"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": "$transform[canvas;a;b;c;d;e;f]",
"category": "canvas",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/transform.ts",
"docs": "https://aoicanvas.vercel.app/functions/transform"
}