Usage
$putPixels[;;;;;;] Also callable as
$putImageData $setPixels Arguments
| Name | Type | Required | Description |
|---|---|---|---|
canvas | String | No | Name of the canvas |
pixels | Json | Yes | The pixels to place |
x | Number | Yes | The X coordinate of the top-left corner of the rectangle from which the pixel colors will be extracted |
y | Number | Yes | The Y coordinate of the top-left corner of the rectangle from which the pixel colors will be extracted |
width | Number | Yes | The width of the rectangle from which the pixel colors will be extracted |
height | Number | Yes | The height of the rectangle from which the pixel colors will be extracted |
type | No | The pixels (image data) content type |