Page 1 of 1

Quick uGL question

Posted: Tue Nov 09, 2004 1:55 pm
by Digital Shadow
Hey, anyone know how to return the RGB of a pixel using uglPGet or other statement in uGL?

Posted: Wed Nov 10, 2004 6:09 am
by Z!re
That depends on which palette you use, try looking in the documentation for RGB and Palette commands.

I cant do it now sadly, not at home.

Posted: Mon Nov 29, 2004 6:05 pm
by Digital Shadow
I found an answer... in 32 bit at least, I'm sure it would be easy to find otherwise, but in 32 bit, the colors follow a RGB hex value, so 0 is black, FFFFFF is white, FF0000 is red, FFFF00 is green, 888888 is grey, etc.