Difference between revisions of "PixelDisplay.pixel"

From MiniScript Wiki
Jump to navigation Jump to search
(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...")
 
 
Line 1: Line 1:
 
<c>[[PixelDisplay]].pixel</c> returns the color of a specific pixel within the display.
 
<c>[[PixelDisplay]].pixel</c> returns the color of a specific pixel within the display.
 
  
 
=== Arguments ===
 
=== Arguments ===

Latest revision as of 02:48, 1 May 2020

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