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

Help: Rainmeter Skins • Re: ShapeGradient, how to?

$
0
0
I'm trying to adapt this to work the other way around, by flipping it 180 degrees. It's doing almost a similar thing to what my original code was.

I can't get it to work as expected. Here's my code:

Code:

[Variables]BarW=120Green=128,255,0Red=255,100,100Yellow=255,255,0[MeasureLoop]Measure=LoopStartValue=0EndValue=100[MeterBar]Meter=ShapeX=0Y=0Shape=Rectangle 0,0,#BarW#,5 |  Fill Color 64,64,64 | StrokeWidth 0Shape2=Rectangle 0,0,([MeasureLoop]*#BarW#/100),5 | Fill LinearGradient1 MyGradient2 | StrokeWidth 0MyGradient2=180 | #Red# ; 0.0 | #Red# ; (0.1 + (100-[MeasureLoop])/100) | #Yellow# ; (0.3 + (100-[MeasureLoop])/100) | #Green# ; (1.0 + (100-[MeasureLoop])/100)DynamicVariables=1
But the colours "move" and are not "static" like yours are, the red grows, then shrinks! How do I stop that?
I notice that you specify a start point: 0.0 is this necessary?

Statistics: Posted by sl23 — Today, 3:48 pm



Viewing all articles
Browse latest Browse all 1185

Trending Articles