My code:
Code: Select all
[MeterCPUCircle]
Meter=Roundline
MeasureName=MeasureCPU
W=20
H=20
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineColor=#white#
Solid=1
AntiAlias=1
X=2
Y=2
Code: Select all
[MeterCPUCircle]
Meter=Roundline
MeasureName=MeasureCPU
W=20
H=20
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineColor=#white#
Solid=1
AntiAlias=1
X=2
Y=2
The roundline is always in the middle of a rectangle starting at the X and Y coordinates and width W, height H. If you omit W and H, the rectangle has its middle at X and Y. If you set W and H, lets say to 100 and 100 the roundlines starting point (the center of it) is at (X + 50) and (Y + 50). So the dimensions stay the same but the center has moved 50 pixels to the right and 50 pixels down.
What ikarus1969 meant above is that to get the Roundline meter at the desired size, you have to define the LineStart and especially the LineLength options on the meter. LineLength define the "external" radius of the Roundline meter, so in fact the double of this represents the size of the meter. LineStart is representing its internal radius, if defined the meter has a transparent area around the center of it. Since you didn't define none of these options, some default values are used for both.
Thank you! The naming of those properties are kinda confusing.balala wrote: ↑February 2nd, 2023, 5:36 pm What ikarus1969 meant above is that to get the Roundline meter at the desired size, you have to define the LineStart and especially the LineLength options on the meter. LineLength define the "external" radius of the Roundline meter, so in fact the double of this represents the size of the meter. LineStart is representing its internal radius, if defined the meter has a transparent area around the center of it. Since you didn't define none of these options, some default values are used for both.
So, long story short, to get the needed size, define the LineLength value. For instance if you add a LineLength=60 option to the meter, you get a Roundline with a radius of 60 pixels. Its diameter accordingly will be 120 pixels.
Yep, might be. However take into account as well, what ikarus1969 said about the Roundline meters.