PDA

View Full Version : creating a color palette



brett01
12-21-2009, 03:00 PM
Hi,

I want to create a color palette for my painting program. Its just some kind of polygon with all colors on it and I should be able to select based on the intersected color.Can someone help me how to do this pls.

Thanks & Regards,
brett.

Matthew4693434
12-21-2009, 03:25 PM
Can't you use the colour palettes included with GUI libraries?

ZbuffeR
12-22-2009, 03:12 AM
brett01, you can use glReadPixels() on the pixel at mouse position, you will be able to read its exact color.