I've got it - Triangles! (The background circle is only to show the original circle size.)
I am sorry, I am loosing my mind every monday.
It is currently April 25th, 2024, 4:08 am
ControlAngle
-
- Posts: 36
- Joined: February 18th, 2014, 4:41 pm
Re: ControlAngle
You do not have the required permissions to view the files attached to this post.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ControlAngle
Can you post the example skin code you used? I'm not sure what this has to do with the ControlXXXXX options...Edhel wrote:I've got it - Triangles! (The background circle is only to show the original circle size.)
I am sorry, I am loosing my mind every monday.
-
- Posts: 36
- Joined: February 18th, 2014, 4:41 pm
Re: ControlAngle
It isn't the very same but here it is:
The only ControlXXXX in question is the ControlAngle (the others are quite simple). I am pretty sure it is the ControlAngle causing this.
Code: Select all
[value]
Measure=Calc
Formula= 0
;------------------------------- Meters
;------------------ solid triangle
[BG1]
meter=Roundline
X=0
Y=0
W=100
H=100
Solid=1
LineLength=50
LineColor=0,198,255,20
Antialias=1
[singletriangle]
meter=Roundline
MeasureName=value
X=0r
Y=0r
W=100
H=100
Solid=1
LineLength=50
LineStart=0
LineColor=0,198,255,200
StartAngle=(Rad(0))
RotationAngle=(Rad(90))
Antialias=1
ControlAngle=0
;------------------- hexagon
[BG2]
meter=Roundline
X=10R
Y=0
W=100
H=100
Solid=1
LineLength=50
LineColor=0,198,255,20
Antialias=1
[HEXstyle]
X=0r
Y=0r
W=100
H=100
Solid=1
LineLength=50
LineStart=0
LineColor=0,198,255,200
RotationAngle=(Rad(60))
Antialias=1
ControlAngle=0
[Hex1]
meter=Roundline
MeasureName=Value
MeterStyle=HEXstyle
StartAngle=(Rad(0))
[Hex2]
meter=Roundline
MeasureName=Value
MeterStyle=HEXstyle
StartAngle=(Rad(60))
[Hex3]
meter=Roundline
MeasureName=Value
MeterStyle=HEXstyle
StartAngle=(Rad(120))
[Hex4]
meter=Roundline
MeasureName=Value
MeterStyle=HEXstyle
StartAngle=(Rad(180))
[Hex5]
meter=Roundline
MeasureName=Value
MeterStyle=HEXstyle
StartAngle=(Rad(240))
[Hex6]
meter=Roundline
MeasureName=Value
MeterStyle=HEXstyle
StartAngle=(Rad(300))
;------------- Lines
[BG3]
meter=Roundline
X=10R
Y=0
W=100
H=100
Solid=1
LineLength=50
LineColor=0,198,255,20
Antialias=1
[LineStyle]
X=0r
Y=0r
W=100
H=100
Solid=1
LineLength=50
LineStart=48
LineColor=0,198,255,200
Antialias=1
ControlAngle=0
RotationAngle=(Rad(120))
[Line1]
meter=Roundline
MeasureName=value
MeterStyle=LineStyle
StartAngle=(Rad(-90))
[Line2]
meter=Roundline
MeasureName=value
MeterStyle=LineStyle
StartAngle=(Rad(30))
[Line3]
meter=Roundline
MeasureName=value
MeterStyle=LineStyle
StartAngle=(Rad(150))
-
- Posts: 1740
- Joined: November 13th, 2012, 9:53 pm
Re: ControlAngle
nice find.
i have a feeling that this is a bug, as from my understanding there should still be a pie slice, not a triangle, when the displayed angle is not controlled by the measure.
get's even more weird when you use value between 0 and 1
but still, nice find.
i have a feeling that this is a bug, as from my understanding there should still be a pie slice, not a triangle, when the displayed angle is not controlled by the measure.
get's even more weird when you use value between 0 and 1
but still, nice find.
-
- Posts: 217
- Joined: July 14th, 2012, 7:26 am
Re: ControlAngle
Yeah, nice one.
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.
My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ControlAngle
Not that I'm sure it helps to understand the practical application of these options, but I did do what I hope is some clarification to the manual for Roundline.
http://docs.rainmeter.net/manual/meters/roundline
http://docs.rainmeter.net/manual/meters/roundline
-
- Posts: 36
- Joined: February 18th, 2014, 4:41 pm
Re: ControlAngle
Oh, in that case I didn't understand the function of ControlLength and ControlStart... Thank you for clarifying. Shouldn't then Rainmeter always draw a full circle with ControlAngle=0 so only the radius ("inner" or "outer") of the circle changes according to measure? (Even though it would probably take away the possibility to draw the triangles. )
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ControlAngle
With ControlAngle=0 there would be no "circle" at all I guess. With ControlAngle=1 and a measure value of 0, or no bound measure, the value is seen as 100% all the time. (0 is 100% of 0) I suspect with ControlAngle=0, the value is in effect seen as 0% all the time, as the measure value isn't used at all in that case.Edhel wrote:Oh, in that case I didn't understand the function of ControlLength and ControlStart... Thank you for clarifying. Shouldn't then Rainmeter always draw a full circle with ControlAngle=0 so only the radius ("inner" or "outer") of the circle changes according to measure? (Even though it would probably take away the possibility to draw the triangles. )
Can't say I have extensively played with this though.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ControlAngle
An example of using ControlLength instead of ControlAngle in the meter. Interesting way to create an "angled" Bar meter clone.
Code: Select all
[Rainmeter]
Update=100
DynamicWindowSize=1
BackGroundMode=2
SolidColor=0,0,0,255
AccurateText=1
[MeasureCalc]
Measure=Calc
Formula=(MeasureCalc % 100) + 1
MinValue=0
MaxValue=100
[MeterRoundline]
Meter=Roundline
MeasureName=MeasureCalc
X=0
Y=0
W=100
H=100
StartAngle=(Rad(45))
ControlAngle=0
LineLength=10
LineColor=0,255,0,255
ControlLength=1
LengthShift=40
LineWidth=5
AntiAlias=1
You do not have the required permissions to view the files attached to this post.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ControlAngle
Or taking the idea a little further...
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
BackGroundMode=2
SolidColor=0,0,0,255
AccurateText=1
[MeasureCPU1]
Measure=CPU
Processor=1
[MeasureCPU2]
Measure=CPU
Processor=2
[MeasureCPU3]
Measure=CPU
Processor=3
[MeasureCPU4]
Measure=CPU
Processor=4
[MeterCPU1]
Meter=Roundline
MeasureName=MeasureCPU1
W=100
H=100
StartAngle=(Rad(-45))
LineStart=2
LineLength=10
LineWidth=5
LineColor=99,235,91,255
ControlAngle=0
ControlLength=1
LengthShift=40
AntiAlias=1
[MeterCPU2]
Meter=Roundline
MeasureName=MeasureCPU2
W=100
H=100
StartAngle=(Rad(45))
LineStart=2
LineLength=10
LineWidth=5
LineColor=235,192,91,255
ControlAngle=0
ControlLength=1
LengthShift=40
AntiAlias=1
[MeterCPU3]
Meter=Roundline
MeasureName=MeasureCPU3
W=100
H=100
StartAngle=(Rad(135))
LineStart=2
LineLength=10
LineWidth=5
LineColor=91,168,235,255
ControlAngle=0
ControlLength=1
LengthShift=40
AntiAlias=1
[MeterCPU4]
Meter=Roundline
MeasureName=MeasureCPU4
W=100
H=100
StartAngle=(Rad(225))
LineStart=2
LineLength=10
LineWidth=5
LineColor=201,91,235,255
ControlAngle=0
ControlLength=1
LengthShift=40
AntiAlias=1
You do not have the required permissions to view the files attached to this post.