Read Pixel Color

is there anyway that i can read a color off a pixel?

Originally posted by stealthmaker:
is there anyway that i can read a color off a pixel?

Yes, glReadPixels, but can slow down the graphics pipe line.
What are you trying to do maybe a better way then with glReadPixels

[This message has been edited by nexusone (edited 08-12-2003).]

well im working on an assignment that i have, im supposed to make a simple paint program… and i thought that i would be really nice to have like a colorful triangle or whatever that i can select the drawing color from… so if i click on it it would read the pixel color and set it …

okk i got it working thanx for ur time man.
cheers!