Table Of Content |
The Color Editor
This color editor is my C translation of an obsolete version of an Open Inventor color editor that I found in the Inventor sample code. Its main features are a WYSIWYG mode, a color wheel, sliders with numerical values and color patches.
- The color can be modified either by moving the color wheel cursor (black square) or moving the slider pointers using the mouse and the left mouse button. It is also possible to type in specific R,G,B,H,S,V values in the type-in fields right to the sliders. Values are range from 0.0 to 1.0.
- The current color is always shown in the left color patch. Any change done to the current color is immediately reflected in the color wheel cursor, the slider pointers and values and the left color patch.
- The current color can be saved in the right color patch using the button with the right arrow. This color can be restored using the button with the arrow pointing to the left. The color can be swapped using the button with the double arrow.
Continuous versus Manual mode:
By default, the color editor works in continuous mode, i.e. modifications done to the color are reflected continuously on the object to which the editor is bound. This behavior can be changed by selecting the Manual button. In this case you will have to press the Accept button in order to apply to current color to the object the editor is bound to.
WYSIWYG mode :
As you can see the sliders have colored backgrounds. In WYSIWYG mode this background is showing what happens to the current color when a slider cursor is moved. For instance, if the color is set to white (R=1, G=1, B=1), in WYSIWYG mode the blue slider goes from yellow to white because moving the blue component towards 0 will make the color go from white to yellow.
The color wheel always shows the saturation (distance from the cursor the center of the wheel) and the HUE (angular position). In the WYSIWYG mode the value is also shown.
Table Of Content |
March 31 12:00 PDT 1997