LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Color Boxes

Is there any way to limit the color options of a color box?
If this is possible, how can I for example limit the color
selection to eight different colors selected by me?


* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
0 Kudos
Message 1 of 3
(2,719 Views)
You can't limit the the colors of a color box.

What you can do is to use a picture ring:
Resize a Flat Box decoration as you wish and copy it on the clipboard
Create a Picture Ring
Make "Import Picture after" eight times.
Color the different boxes as needed.

The Picture Ring will output a number 0 to 7 from which you can map a color.


--
Jean-Pierre Drolet
Scientech R&D inc
Trois-Rivieres-Ouest (Quebec)
CANADA G8Z 4H1



Gorka Larrea a écrit dans le message :
01a5768b.5d5bf0bf@usw-ex0108-061.remarq.com...
> Is there any way to limit the color options of a color box?
> If this is possible, how can I for example limit the color
> selection to eight different colors selected by me?
>
>
> * Sent from AltaVista http://www.altavista.c
om Where you can also find
related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is
Beautiful
Message 2 of 3
(2,719 Views)
Hi Gorka

Another way is to use the color ramp control which can be used to return a number to represent the color selected..

To do this:

1 - On the pull down menu turn off intrapolation.

2 - Change the numerical representation to U8.

3 - Set maximum value of the control to the maximum numbers of colors you want.

4 - Create an attribute node and change it to 'Color Array'.

5 - The Color Array attribute requires an array of clusters. The cluster contains a DBL, which is the numeric you want colored, and an integer, which is the
color you want for the numeric. You can make this array contain all the values you want to have seperate colors. To represent the color you want you can use
the color constant.

Tim

Gorka Larrea wrote:

> Is there any way t
o limit the color options of a color box?
> If this is possible, how can I for example limit the color
> selection to eight different colors selected by me?
>
> * Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
Message 3 of 3
(2,719 Views)