It is currently September 21st, 2021, 7:57 am

## Thread for help with the Shape meter

Help with creating, editing & fixing problems with skins
death.crafter
Posts: 936
Joined: April 24th, 2021, 8:13 pm

### Re: Thread for help with the Shape meter

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]

[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
``````
from the Realm of Death
My Current Desktop
CodeCode
Posts: 634
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

### Re: Thread for help with the Shape meter

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: 634
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

### Re: Thread for help with the Shape meter

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: 13210
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

### Re: Thread for help with the Shape meter

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
Posts: 936
Joined: April 24th, 2021, 8:13 pm

### Re: Thread for help with the Shape meter

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
My Current Desktop
balala
Rainmeter Sage
Posts: 13210
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

### Re: Thread for help with the Shape meter

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: 634
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

### Re: Thread for help with the Shape meter

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: 13210
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

### Re: Thread for help with the Shape meter

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

### Re: Thread for help with the Shape meter

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.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.