LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I modify the form of a color ramp (I don't want a square but a heart)

Solved!
Go to solution
Highlighted

Hello !

 

I want to know If we can modify a color ramp, because mine is a square and I want to have a heart.

If no, maybe can I load an image (of a heart) and make it change of color in function of input datas ?

 

Thanks !

0 Kudos
Message 1 of 5
(823 Views)
Highlighted

What is a square color ramp? Typically it is something linear.

 

Are you talking about an array of colorboxes? Do you want each element to be a heart?

 

Please show is an illustration of what you want.


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 2 of 5
(821 Views)
Highlighted

Hi,

 

(Sorry for the vocab I'm French)

 

I join you an image so that you can understand !

On the picture, it is a square, but i want to change the form ... (I want a heart)

If it is not possible, maybe is it possible to change the color of an image (of a monocolor heart with a black shape) in function of input datas ?

 

Thanks you in advance

 

0 Kudos
Message 3 of 5
(793 Views)
Solution
Accepted by Geronimooo

veux tu un coeur?? (I hope it's correct Smiley Wink )

 

In the attachment is what you want.

 

How I did it:

 - in Photoshop (you can use something else) i created a picture, crop the middle as a heart, create a new layer and save it as GIF. It is very important to save it as gif because it allows transparent areas of the picture. Saving it as bmp will fill the middle with white.

- open your front panel and drag-and-drop (using the mouse) the created gif file.

- add the "color ramp" (be sure to size it in order to fit to the heart), bring the image to front and send "color ramp" to back (on the toolbar there are some buttons which allow you to set the order of the controls and indicator - front or back)

 

Now you have your heart. 

 

Paul

Message 4 of 5
(778 Views)
Highlighted

Oh My GODD !!!

 

THANK YOU !! (and it was correct !)

0 Kudos
Message 5 of 5
(758 Views)