It is currently June 10th, 2023, 9:40 pm
Get help with creating, editing & fixing problems with skins
death.crafter
Rainmeter Sage
Posts: 1398 Joined: April 24th, 2021, 8:13 pm
Post
by death.crafter » August 14th, 2021, 8:08 am
CodeCode wrote: ↑ August 14th, 2021, 4:56 am
Starting from the bottom center - or 90 deg (i think thats right).
You mean something like this?
Code: Select all
[Rainmeter]
Update=50
[Variables]
Radius=97
[Loop]
Measure=Loop
StartValue=1
EndValue=360
Increment=1
MaxValue=360
[MeterShow]
Meter=Shape
X=3
Y=3
DynamicVariables=1
Shape=Ellipse 97,97,97,97 | Fill Color 0,0,0,0 | StrokeWidth 6 | Stroke Color 255,255,0,250
Shape2=Line (#Radius#+(#Radius#-3)*cos(rad(90+[Loop]))),(#Radius#+(#Radius#-3)*sin(rad(90+[Loop]))), (#Radius#+(#Radius#+3)*cos(rad(90+[Loop]))),(#Radius#+(#Radius#+3)*sin(rad(90+[Loop]))) | StrokeWidth 3
from the Realm of Death
CodeCode
Posts: 1177 Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia
Post
by CodeCode » September 14th, 2021, 12:48 am
Hello,
I found a section of code that defines a line. The line is the hand of a clock, so it rotates according to seconds time.
What I am having trouble with is changing the length of the line. I understand that the startx,starty,endx,endy, and if the line were static i think this might be easier to do.
Thanks for any help.
Code: Select all
[Rainmeter]
Update=1000
[MeasureSecond]
Measure=Time
Format=%#S
[MeasureSecondAngle]
Measure=Calc
Formula=(MeasureSecond * 6)
[MeterHand]
Meter=Shape
X=338
Y=237
Shape=Line 1,101,1,11 | StrokeWidth 1 | Stroke Color 220,220,220 | StrokeEndCap Triangle | Rotate [MeasureSecondAngle],1,90
Shape2=Ellipse 1,101,4 | StrokeWidth 0 | Fill Color 30,220,30
DynamicVariables=1
[MeterSolid]
Meter=Image
SolidColor=0,0,0,1
X=63
Y=63
W=554
H=55
Last edited by CodeCode on September 14th, 2021, 5:09 am, edited 1 time in total.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
CodeCode
Posts: 1177 Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia
Post
by CodeCode » September 14th, 2021, 5:09 am
Ok - I figured it out. for meter x and y, are adjusted according to startx and starty. for length of the hands, reduce the meter y and increase shape starty.
starty minus endy = anchory.
I think I said that right.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
balala
Rainmeter Sage
Posts: 15326 Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania
Post
by balala » September 14th, 2021, 12:48 pm
CodeCode wrote: ↑ September 14th, 2021, 12:48 am
What I am having trouble with is changing the length of the line.
Not sure I follow (even if you figured out what to do). Why would you want to change the length of a clock hand?
death.crafter
Rainmeter Sage
Posts: 1398 Joined: April 24th, 2021, 8:13 pm
Post
by death.crafter » September 14th, 2021, 3:22 pm
balala wrote: ↑ September 14th, 2021, 12:48 pm
Not sure I follow (even if you figured out what to do). Why would you want to change the length of a clock hand?
To have a bigger clock?
from the Realm of Death
balala
Rainmeter Sage
Posts: 15326 Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania
Post
by balala » September 14th, 2021, 3:32 pm
death.crafter wrote: ↑ September 14th, 2021, 3:22 pm
To have a bigger clock?
I thought he wants to modify dynamically. But you might be right.
CodeCode
Posts: 1177 Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia
Post
by CodeCode » September 15th, 2021, 12:14 am
balala wrote: ↑ September 14th, 2021, 3:32 pm
I thought he wants to modify dynamically. But you might be right.
Yep, Needed to make a bigger clock.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
balala
Rainmeter Sage
Posts: 15326 Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania
Post
by balala » September 15th, 2021, 11:48 am
CodeCode wrote: ↑ September 15th, 2021, 12:14 am
Yep, Needed to make a bigger clock.
And you succeeded, right?
CodeCode
Posts: 1177 Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia
Post
by CodeCode » September 15th, 2021, 11:52 am
balala wrote: ↑ September 15th, 2021, 11:48 am
And you succeeded, right?
Yes. With a little finesse, my analog style clock looks great and is easy to read.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
Jeff
Posts: 290 Joined: September 3rd, 2018, 11:18 am
Post
by Jeff » October 19th, 2022, 7:52 pm
I just noticed FillColor and Fill Color (with a space) do the same thing, can't find anything about it on the docs, I guess it's just a harmless parsing error that ends up resolving itself