Skip to content

#PixCol

VariableMiscellaneousRead-onlyNumberNeeds client
Set by
SavePix

Also searchable as: #PixCol · PixCol · pixel colour · color

#PixCol is the colour of the pixel last read by savepix. The colour is a number in Windows’ $BBGGRR order: blue, green, red, each from $00 to $FF. It reads as an ordinary number, so compare it with $ numbers: #PixCol = $0000FF is pure red.

Pixels are read from the screen, so the client window has to be visible, and the same spot can give slightly different values on different computers.

savepix 100 100 1
if #PixCol = $000000
display ok Black.
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.