Skip to content

$putPixelsColors

Places the pixel colors in the canvas.

Usage

$putPixelsColors[canvas;x;y;width;height;pixels]

Parameters

FieldTypeDescriptionRequired
canvasStringName of the canvas to place the pixels in.True
xNumberThe X coordinate at which to place the pixel colors in the canvas.True
yNumberThe Y coordinate at which to place the pixel colors in the canvas.True
widthNumberWidth of the rectangle to be painted.True
heightNumberHeight of the rectangle to be painted.True
pixelsArrayThe pixel colors.True

Example(s)

No examples for this function.

meow

Raw Info

{
"name": "$putPixelsColors",
"description": "Places the pixel colors in the canvas.",
"params": [
{
"name": "canvas",
"description": "Name of the canvas to place the pixels in.",
"type": "String",
"required": true
},
{
"name": "x",
"description": "The X coordinate at which to place the pixel colors in the canvas.",
"type": "Number",
"required": true
},
{
"name": "y",
"description": "The Y coordinate at which to place the pixel colors in the canvas.",
"type": "Number",
"required": true
},
{
"name": "width",
"description": "Width of the rectangle to be painted.",
"type": "Number",
"required": true
},
{
"name": "height",
"description": "Height of the rectangle to be painted.",
"type": "Number",
"required": true
},
{
"name": "pixels",
"description": "The pixel colors.",
"type": "Array",
"required": true
}
],
"usage": "$putPixelsColors[canvas;x;y;width;height;pixels]",
"category": "canvas",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/putPixelsColors.ts",
"docs": "https://aoicanvas.vercel.app/functions/putpixelscolors"
}