Setup A Bar Gauge Level Function
Hey all.
I could use some help on this bar gauge widget I developed.
The purpose of the Bar Gauge is to visually show the current tank level. I have attached the Rive Backup (.rev) file for you all to review.
This is how I want the Bar Gauge to function.
1.) A database value will place the Max tank level amount (top-right of bar)
this is bind to RangeMax-Value
2.) A database value will place the Min tank level amount (bottom-right of bar)
this is bind to RangeMin-Value
3.) A database value will place the current tank level amount (middle-right of bar)
this is located at BarGauge-Indctr group with a bind named Indctr-Line
4.) Then the formula will process and display the animated bar which is covered by an animated mask
(this is located at BarGauge-MASK group and bind to Bar-Yscale)
My issue is I want the BarGuage-Indctr group to be at the top of the revealed bar, which it is not.
After pressing the Play/Run button, input these values in the corresponding location in the Data panel View Model:
RangeMax-Value = 750
RangeMin-Value = 125
Indctr-Amnt = 486
You can play with the values to see how things look before evaluating my formula issue.
Can you all help by reviewing my Rive file and explain where I went wrong? Or, if my whole formula is setup wrong.