This QControl allows the user to select a color either by using the Grey and Color Selectors or by setting the RGB Values. It is a cluster of controls that can be used on any front panel VI user interface. It uses and requires the QControl Toolkit which is available for free from the NI LabVIEW Tools Network, here.
This QControl uses several controls bundled into a cluster. The cluster is saved as a Strict Typed Def in the Facade Folder in the ColorSelector Qcontrol Class. The main selectors work using mouse events and drawing the cross-hairs accordingly. The code is completely open for viewing and is available below.
A Tester VI is also included to show an example of how to implement the ColorSelector QControl.
As you can see from the picture of the Tester and the list from the Class itself, I have included a handful of other useful methods for converting color scales, finding variation on the same color (luminance or lighter and darker), color distance, color gradients, and complementary colors.
Even though these methods are members of the ColorSelector QControl Class, many of them are not dependent on the class. They can be copied out of the class for use elsewhere.
Hardware and Software Requirements
Like stated above, the ColorSelector QControlrequires the QControl Toolkit which is available for free from the NI LabVIEW Tools Network, here.
Steps to Implement or Execute Code
1. Install the QControl Toolkit.
2. Download the ColorSelector QControl.
3. See the Test ColorSelector.vi in the class\Tester Folder.
4. For more information review the documentation about QControls available with the toolkit.