This program shows HSV color model.  It requires OpenGL 3.3.0 or above.  It is based on samples from Tutorial 0.3.8 (http://www.arcsynthesis.org/gltut/). Please build it the same way. I don't attach required lib and framework files.  I attach CodeBlocks project file.  To choose color hue rotate the triangle. There are auto rotation mode and manual rotation mode. If you prefer auto mode, just uncomment the code in hsv.cpp(display()). To rotate the triangle manually use 'a' and 'd' keys. After than you can click left mouse button to set the color. Chosen color will appear in the top right corner.  I expect you enjoy it.