I was trying to make a new skin and I wanted to make a different style, with a shape that has a cut in one of the parts of it and the cut area is rounded
like in this example:
any help are wellcome.
It is currently April 24th, 2024, 2:41 am
Trying to make a cut rounded rectangular shape
-
- Posts: 114
- Joined: November 15th, 2021, 1:47 am
- Location: Brazil
Trying to make a cut rounded rectangular shape
You do not have the required permissions to view the files attached to this post.
;===========================================Rafamear=================================================
;========================= ========== My DeviantArt ========== ==============================
;========================= ========== My DeviantArt ========== ==============================
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Trying to make a cut rounded rectangular shape
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
[MeterShape]
Meter=Shape
X=10
Y=10
Shape=Path MyPath | StrokeWidth 15 | Stroke Color 0,0,0,255 | StrokeStartCap Round | StrokeEndCap Round | StrokeLineJoin Round
MyPath=30,50 | LineTo 0,50 | LineTo 0,0 | LineTo 100,0 | LineTo 100,50 | LineTo 70,50
https://docs.rainmeter.net/manual/meters/shape/
https://docs.rainmeter.net/manual/meters/shape/#Path
https://docs.rainmeter.net/manual/meters/shape/#AttributeModifiers
https://docs.rainmeter.net/manual/meters/shape/#StrokeStartCap
https://docs.rainmeter.net/manual/meters/shape/#StrokeEndCap
https://docs.rainmeter.net/manual/meters/shape/#StrokeLineJoin
You do not have the required permissions to view the files attached to this post.
-
- Posts: 114
- Joined: November 15th, 2021, 1:47 am
- Location: Brazil
Re: Trying to make a cut rounded rectangular shape
Can't the inside be rounded too?jsmorley wrote: ↑October 24th, 2022, 1:49 amCode: Select all
[Rainmeter] Update=1000 DynamicWindowSize=1 AccurateText=1 [Variables] [MeterShape] Meter=Shape X=10 Y=10 Shape=Path MyPath | StrokeWidth 15 | Stroke Color 0,0,0,255 | StrokeStartCap Round | StrokeEndCap Round | StrokeLineJoin Round MyPath=30,50 | LineTo 0,50 | LineTo 0,0 | LineTo 100,0 | LineTo 100,50 | LineTo 70,50
1.png
https://docs.rainmeter.net/manual/meters/shape/
https://docs.rainmeter.net/manual/meters/shape/#Path
https://docs.rainmeter.net/manual/meters/shape/#AttributeModifiers
https://docs.rainmeter.net/manual/meters/shape/#StrokeStartCap
https://docs.rainmeter.net/manual/meters/shape/#StrokeEndCap
https://docs.rainmeter.net/manual/meters/shape/#StrokeLineJoin
;===========================================Rafamear=================================================
;========================= ========== My DeviantArt ========== ==============================
;========================= ========== My DeviantArt ========== ==============================
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Trying to make a cut rounded rectangular shape
Not sure. Not by using Path and LineTo you can't. I'm sure there is a more complex drawing primitive using Beizer curves or arcs that might work for that, but that would be outside my wheelhouse I'm afraid.
-
- Posts: 571
- Joined: February 28th, 2011, 3:20 pm
- Location: Vienna, Austria
Re: Trying to make a cut rounded rectangular shape
You can use the following code. But please read and use the links jsmorley posted also.
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
[MeterShape]
Meter=Shape
X=10
Y=10
Shape=Path MyPath | StrokeWidth 15 | Stroke Color 0,0,0,255 | StrokeStartCap Round | StrokeEndCap Round | StrokeLineJoin Round
MyPath=80, 100 | LineTo 40, 100 | ArcTo 20, 80, 20, 20 | LineTo 20, 40 | ArcTo 40, 20, 20, 20 | LineTo 140, 20 | ArcTo 160, 40, 20, 20 | LineTo 160, 80 | ArcTo 140, 100, 20, 20 | LineTo 120, 100
You do not have the required permissions to view the files attached to this post.