It is currently March 29th, 2024, 5:56 am

Thread for help with the Shape meter

Get help with creating, editing & fixing problems with skins
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Thread for help with the Shape meter

Post by death.crafter »

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
User avatar
CodeCode
Posts: 1363
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Thread for help with the Shape meter

Post by CodeCode »

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.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
CodeCode
Posts: 1363
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Thread for help with the Shape meter

Post by CodeCode »

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.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Thread for help with the Shape meter

Post by balala »

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?
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Thread for help with the Shape meter

Post by death.crafter »

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
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Thread for help with the Shape meter

Post by balala »

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.
User avatar
CodeCode
Posts: 1363
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Thread for help with the Shape meter

Post by CodeCode »

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.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Thread for help with the Shape meter

Post by balala »

CodeCode wrote: September 15th, 2021, 12:14 am Yep, Needed to make a bigger clock.
And you succeeded, right?
User avatar
CodeCode
Posts: 1363
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Thread for help with the Shape meter

Post by CodeCode »

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.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
Jeff
Posts: 326
Joined: September 3rd, 2018, 11:18 am

Re: Thread for help with the Shape meter

Post by Jeff »

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