Clark
1
Hi!
I’m currently trying to do a simple “Paint” program using OpenGL with Microsoft Visual C++.
My questions are:
-
How do I make a color palette with 256 colors?
-
How can I change the current color by clicking on a point in the palette?
Thankful for answer.
/Clark
system
2
I believe you need to use something called ‘color index mode’. It’s documented in the red book.
Clark
3
Thank you.
But how can I change the color by clicking on a pixel with the mouse? Any ideas would be helpful.
/Clark