Greetings, sorry to revive this post but I was using this arc graph and wanted to know how I would go about rotating the graph? It would really be nice to have it be rotated in the same way as a car's speedometer for example. Thanks!Done. For instance:GIF 2023. 09. 11. 20-57-28.gifCode:
[Rainmeter]Update=1000SkinWidth=(2*#CenterX#)SkinHeight=(2*#CenterY#)BackgroundMode=2SolidColor=220,220,220,80[Variables]CenterX=200CenterY=200Radius=100Thickness=12RoundlineColor=253,220,0[MeasureCPU]Measure=CPUMinValue=0MaxValue=100[MeterShape]Meter=ShapeX=2Y=2Shape=Arc #CenterX#,(#CenterY#-#Radius#),(#CenterX#+#Radius#*Sin(Rad(((Clamp((360*([MeasureCPU]/([MeasureCPU:MaxValue]-[MeasureCPU:MinValue]))),0,180)+180)%360)))),(#CenterY#+#Radius#*Cos(Rad(((Clamp((360*([MeasureCPU]/([MeasureCPU:MaxValue]-[MeasureCPU:MinValue]))),0,180)+180)%360)))),#Radius#,#Radius#,0,1,0,0 | Extend MyModifiersShape2=Arc (#CenterX#+#Radius#*Sin(Rad(((180+180)%360)))),(#CenterY#+#Radius#*Cos(Rad(((180+180)%360)))),(#CenterX#+#Radius#*Sin(Rad(((Clamp((360*([MeasureCPU]/([MeasureCPU:MaxValue]-[MeasureCPU:MinValue]))),180,360)+180)%360)))),(#CenterY#+#Radius#*Cos(Rad(((Clamp((360*([MeasureCPU]/([MeasureCPU:MaxValue]-[MeasureCPU:MinValue]))),180,360)+180)%360)))),#Radius#,#Radius#,0,1,0,0 | Extend MyModifiersMyModifiers=StrokeWidth #Thickness# | Stroke Color #RoundlineColor# | Fill Color 0,0,0,0 | StrokeStartCap Round | StrokeEndCap RoundDynamicVariables=1
The magic here is the StrokeEndCap Round parameter of the MyModifiers option of the [MeterShape] meter, which rounds the ends of the shape.
The meaning of the used variables:I hope the meaning of the variables are obvious. The roundline is showing the CPU usage, but you can use it to show anything else, by altering the [MeasureCPU] measure.
- CenterX and CenterY are the coordinates of the center.
- Radius is the radius (or semidiameter) of the roundline
- Thickness is the thickness of the line used in drawing the roundline
- RoundlineColor is the color of roundline.
Statistics: Posted by ÞeSheepMan — Today, 12:27 am