Sign In

$putPixels[]

Places pixels in the canvas

v1.0.0+ Requires Brackets

Usage

$putPixels[;;;;;;]
Also callable as
$putImageData $setPixels

Arguments

NameTypeRequiredDescription
canvas
StringNoName of the canvas
pixels
JsonYesThe pixels to place
x
NumberYesThe X coordinate of the top-left corner of the rectangle from which the pixel colors will be extracted
y
NumberYesThe Y coordinate of the top-left corner of the rectangle from which the pixel colors will be extracted
width
NumberYesThe width of the rectangle from which the pixel colors will be extracted
height
NumberYesThe height of the rectangle from which the pixel colors will be extracted
type
NoThe pixels (image data) content type

Was this page helpful?