death.crafter wrote: ↑June 12th, 2021, 9:46 pm
Mm... It is a solution for the current case but it wouldn't work if the lower point of the arc were to be extended to a little left. Well in order to get something you have to lose something
Well, the initial excluded rectangle (or even the container) in their current form wouldn't have worked for that case either, now, would it?
But ... I have to disagree that it wouldn't work in leaving the lower arc alone. I suppose you mean that it would happen something like (I extended the transparent gradient instead of extending the lower point of the arc to the left, as it was easier):
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.95 | 0,0,0,150 ; 0.95 | 0,0,0,150 ; 1.0
Little 01.jpg
So, a small portion of the lower arc (the downside part) is cut off as well, right? However, if I separate the shapes in the meter, this so called drawback (which, as mentioned above, would have happened in the case of the initial excluded rectangle attempt as well, so no chage there) is cancelled:
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 | StrokeWidth 4 | Stroke Color 0,0,0,150
MyPath=100,60 | ArcTo 120,50,20,10,0,1,0
Shape2=Path MyPath2 | Extend CableModifiers
MyPath2=120,50 | 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.5 | 0,0,0,0 ; 0.5 | 0,0,0,0 ; 0.97 | 0,0,0,150 ; 0.97 | 0,0,0,150 ; 1.0
Little 02.jpg
You do not have the required permissions to view the files attached to this post.