UI Interest Group Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

ColorSelector QControl

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.  It uses and requires the QControl Toolkit which is available for free from the NI LabVIEW Tools Network, here.

Description

ColorSelector QControlThis 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.

 

Tester VI

 

A Tester VI is also included to show an example of how to implement the ColorSelector QControl.  

 

Included Methods

 

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 QControl requires 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.

Additional Information or References

Feel free to post questions or comments here.

 

Enjoy,

Quentin "Q" Alldredge, CLA

Q Software Innovations, LLC

NI Alliance Partner

 

www.qsoftwareinnovations.com

Quentin "Q" Alldredge

Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner



Contributors