And here it is - applying hard-stop / drop-dead gradients, no second shape required:Yincognito wrote: ↑June 12th, 2021, 9:16 pm I got a better solution, will post it in a couple of moments.
This doesn't have any of the drawbacks of using a container or having to draw another shape - it only requires playing a bit with those percentages where colors stop or begin until you get the desired outcome, that's all. The only limitation is the fact that there are just a few gradient types to choose from.
Code: Select all
[Rainmeter] BackgroundMode=2 SolidColor=250,250,250,180 SkinWidth=240 SkinHeight=80 [MeterCharging] Meter=Shape X=100 Y=5 Shape=Path MyPath | Extend CableModifiers MyPath=100,60 | ArcTo 120,50,20,10,0,1,0 | ArcTo 0,20,120,30,0,1,0 | ClosePath 0 CableModifiers=StrokeWidth 4 | Stroke LinearGradient ExcludeGradient ExcludeGradient=180 | 0,0,0,150 ; 0.0 | 0,0,0,150 ; 0.4 | 0,0,0,0 ; 0.4 | 0,0,0,0 ; 0.9 | 0,0,0,150 ; 0.9 | 0,0,0,150 ; 1.0