PixelDisplay.pixel
Revision as of 02:48, 1 May 2020 by ZachStrout (talk | contribs) (Created page with "<c>PixelDisplay.pixel</c> returns the color of a specific pixel within the display. === Arguments === {| class="wikitable" |- ! Parameter Name !! Type !! Default Value...")
PixelDisplay.pixel
returns the color of a specific pixel within the display.
Arguments
Parameter Name | Type | Default Value | Meaning |
---|---|---|---|
x | number | 0 | horizontal coordinate of pixel to get |
y | number | 0 | vertical coordinate of pixel to get |
Usage Notes
Note that the color is always returned with the alpha channel included. So even if you draw in color "#00FF00" (solid green, with alpha implied), the pixel color will be returned as "#00FF00FF" (also solid grean, but with the alpha explicit as the final FF).