Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 509

ShapeGradient, how to?

$
0
0
Sorry for the title, wasn't too sure how to phrase it concisely.

So I set up a shapegradient all well and good, but I don't know how to get it to work as a battery measure.
By that' I mean that the whole thing shrinks, whereas I would like it to stay the same size, but sort of cut the right side off as the battery level goes down. Does that make sense?

I have this at present:

Code:

[BatteryBar]Meter=ShapeShape=Rectangle  0, 0, 120, 2 | StrokeWidth 0 | Fill Color #White100#Shape2=Rectangle 0, 0, ([mBattery:]*120), 2 | StrokeWidth 0 | Fill LinearGradient ShapeGradientShapeGradient=180 | #Red# ; 0.2 | #Yellow# ; 0.4 | #Green# ; 0.5DynamicVariables=1
As you can see, I'm adjusting the width of the shape gradient bar depending on the battery level. I'm not sure how to get it working the way I want, as a proper gradient gauge would.
Thanks for your help. :thumbup:

Statistics: Posted by sl23 — Yesterday, 10:22 pm — Replies 2 — Views 32



Viewing all articles
Browse latest Browse all 509

Trending Articles