User ( posted:

I use get_pixel_color(), and it returns 0 for black and 255 for red.

In general, the formula is;
0x00bbggrr (full word) - where bb is the blue intensity value, gg the
green value and rr the red value.

so; red is x'000000ff' or 255.
white would be x'00ffffff' or 16,777,215.

Jerry S.