The ColorSelector QControl code can be found here:
ColorSelector QControl.zip
The QControl Toolkit is required to use this and can be found here:
The QControl Toolkit on LabVIEW Tools Network
Overview
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. 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.
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.
Comments
Post a Comment