Jump to content

How to change each gradient on a "gradient fill" slider


Recommended Posts

I found an example named "Example-Alarm Slide Control" from LV8.

I've gone over this example and the "Example-Slide Fill Color" example, which are very good at explaining how to change the fill color based on an input value. Searching around though I haven't yet found an example of how to change each gradient on a "gradient fill" slider to make a multi-colored slider. Something like this:


...where the colors would stay constant as the slider moved up and down exposing blue/green/red indicators, similar to how a real meter with individual LED indicators would appear on a dashboard.

I have a feeling I'm going to be developing some sort of boolean cluster with three arrays and a numeric (for the digital display) in it, but is there a simpler/better way of doing this with a slide?

Thanks for any input,

Joe (orko)

Link to comment
How about something like this that takes advantage of multiple sliders?

Ask and ye shall receive


Now that's what I call "slick"! I was trying to get multiple sliders to work (I had a much more complicated solution in mind), but the thought of comparing the individual sliders to a set "maximum" from a cluster constant, and outputing the "minimum" of the two was what I was missing. This concept will come in handy elsewhere...

THANK YOU VERY MUCH! My eyes are open now. :worship:

Joe (orko)

Link to comment
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.