It is currently March 29th, 2024, 9:12 am

make a half circle

Get help with creating, editing & fixing problems with skins
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

make a half circle

Post by Rafamear »

I just wanted to make a half circle because I can't use combine to join a circle and a rectangle

Code: Select all

[Circle2ProgressEmpty]
meter=Shape
Shape=Ellipse 0,0,5,5 | Fill Color 255,255,255,100 | StrokeWidth 2 | Stroke Color 0,0,0,1
DynamicVariables=1
X=215
Y=31

[ProgressBG]
Meter=Shape
Shape=Rectangle 0,0,10,160,0 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 255,255,255,100
HolderStroke=Stroke Color 0,0,0,1
DynamicVariables=1
X=210
Y=31
You do not have the required permissions to view the files attached to this post.
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: make a half circle

Post by eclectic-tech »

Rafamear wrote: November 12th, 2022, 5:35 am I just wanted to make a half circle because I can't use combine to join a circle and a rectangle
I would suggest using a LINE shape rather than a rectangle. You can set the Strokewidth and Stroke Color to match your RECTANGLE shape then use StrokeStartCap and StrokeEndCap to square and round the LINE ends as desired.

Code: Select all

[ProgressBG]
Meter=Shape
Shape=Line 0,165,0,5 | StrokeWidth 10 | Stroke Color 255,255,255,100 | Fill Color 255,255,255,100 | StrokeStartCap Square | StrokeEndCap Round
DynamicVariables=1
X=210
Y=31
strokecap.png
You do not have the required permissions to view the files attached to this post.
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: make a half circle

Post by ikarus1969 »

Have you seen the "Arc" yet: https://docs.rainmeter.net/manual/meters/shape/#Arc

Ah, i see eclectic-tech better understood what you try to achieve
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: make a half circle

Post by Rafamear »

ikarus1969 wrote: November 12th, 2022, 6:08 am Have you seen the "Arc" yet: https://docs.rainmeter.net/manual/meters/shape/#Arc

Ah, i see eclectic-tech better understood what you try to achieve
I had a look but it wasn't what I was looking for, eclectic-tech this seems to work better for me
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: make a half circle

Post by eclectic-tech »

Rafamear wrote: November 12th, 2022, 6:16 am I had a look but it wasn't what I was looking for, eclectic-tech this seems to work better for me
Hopefully you are able to achieve your desired shape.

A couple of comments about your post:
You CAN combine any shapes, but the result may not be what you desired due to the child shapes taking on the parent shape attribute modifiers.

Don't use multiple EXTEND parameters; combine them in 1 EXTEND.
Doc example:

Code: Select all

[MeterShapes]
Meter=Shape
Shape=Rectangle 0,0,100,50 | Extend MySharedModifiers, MyRotateAndScale1
Shape2=Rectangle 20,10,50,50 | Extend MySharedModifiers, MyRotateAndScale2
MySharedModifiers=Fill Color 0,0,0,255 | StrokeWidth 4 | Stroke Color 255,255,255,255
MyRotateAndScale1=Rotate 20 | Scale 1.5,0
MyRotateAndScale2=Rotate 45 | Scale 2.0,1.5
Note the additional EXTEND names are separated by commas.