From MiniScript Wiki
Jump to navigation Jump to search

PixelDisplay.pixel returns the color of a specific pixel within the display.


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).