Quick uGL question

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
Digital Shadow
Coder
Posts: 23
Joined: Sun Oct 03, 2004 10:26 pm
Location: Prince George, BC, Canada

Quick uGL question

Post by Digital Shadow »

Hey, anyone know how to return the RGB of a pixel using uglPGet or other statement in uGL?
People laugh at me because I'm different, I laugh because there all the same... Soooo, if were all laughing, I fail to see the problem
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post 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.
I have left this dump.
Digital Shadow
Coder
Posts: 23
Joined: Sun Oct 03, 2004 10:26 pm
Location: Prince George, BC, Canada

Post 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.
People laugh at me because I'm different, I laugh because there all the same... Soooo, if were all laughing, I fail to see the problem
Post Reply