$putPixelsColors
Places the pixel colors in the canvas.
Usage
$putPixelsColors[canvas;x;y;width;height;pixels]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| canvas | String | Name of the canvas to place the pixels in. | True |
| x | Number | The X coordinate at which to place the pixel colors in the canvas. | True |
| y | Number | The Y coordinate at which to place the pixel colors in the canvas. | True |
| width | Number | Width of the rectangle to be painted. | True |
| height | Number | Height of the rectangle to be painted. | True |
| pixels | Array | The pixel colors. | True |
Example(s)
No examples for this function.

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