It is currently May 3rd, 2024, 11:35 pm

Is it possible to make a horizontal needle gauge?

Get help with creating, editing & fixing problems with skins
Upgrade
Posts: 5
Joined: March 2nd, 2012, 2:33 am

Is it possible to make a horizontal needle gauge?

Post by Upgrade »

I've tried to search for previous this, but I have not been successful.

First off, I'm following this as a guideline:

http://wijmo.com/files/img/lineargauge_orientation.png

The needle thus moves in response to a measure.

There are similar concepts based on the speedometer, but it's arranged in a circular fashion.

I'm currently have a picture with all the needle positions layered on top of the gauge markings and trying to use BAR to manipulate it to show the needle at the correct position at the same time.

I was just wondering if there was an easier way, such as a ROTATOR function that can be implemented horizontally or vertically.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Is it possible to make a horizontal needle gauge?

Post by smurfier »

Code: Select all

[Variables]
GaugeWidth=100

[Measure]
Measure=Calc
Formula=Measure%100+1

[Background]
Meter=Image
SolidColor=255,0,0,255
H=20
W=100

[Needle]
Meter=Image
Solidcolor=0,255,0,255
H=20
W=2
X=(#GuageWidth#*([Measure]/100))
DynamicVariables=1
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
Upgrade
Posts: 5
Joined: March 2nd, 2012, 2:33 am

Re: Is it possible to make a horizontal needle gauge?

Post by Upgrade »

Thank you for saving me hours of unnecessary work. Though I wonder why I haven't seen this around before.