GradientSlider values
Posted: Wed Aug 02, 2017 6:52 pm
I just added a vertical gradient slider. To me the values seems backwards: the bottom should be 0, the top should be 100. But it is the opposite. If it were a volume control, the top is max volume, not mute. Even the colors are backwards.
Is there a formula, or function, to reverse the values?
If at top 0->100.
If at 75% 25->75
If at 50% 50->50
If at 25% 75->25
If at bottom 100->0
SliderGadget has SLIDER_Invert, looks like gradient could use that, too.
*EDIT*
Reverse the value: 100-((100*GradLevel)/100)
Is there a formula, or function, to reverse the values?
If at top 0->100.
If at 75% 25->75
If at 50% 50->50
If at 25% 75->25
If at bottom 100->0
SliderGadget has SLIDER_Invert, looks like gradient could use that, too.
*EDIT*
Reverse the value: 100-((100*GradLevel)/100)