It is currently December 15th, 2019, 6:24 am

Using Container with Roundline

Tips and Tricks from the Rainmeter Community
User avatar
jsmorley
Developer
Posts: 19870
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Using Container with Roundline

jsmorley » October 19th, 2019, 1:21 pm

One of the interesting things you can do with the new Container functionality in Rainmeter is to use this with the Roundline meter to give a whole new level of possible customization.

With Container, you can now use any image as a "fill" for your Roundline meter, rather than the single solid color available in the Roundline meter itself.

Note that you can use the X and / or Y options on the [MeterImage] below to move the image around inside the container, so it is positioned exactly as you like. You can use W and H to size the image as needed.

You might even use IfConditions on your measure to have the meter use different images entirely depending on where in the percentage value it is at any given time.

Code: Select all

[Rainmeter]
Update=200
DynamicWindowSize=1
AccurateText=1

[Variables]

[MeasureLoop]
Measure=Loop
StartValue=0
EndValue=100
Increment=1
MinValue=0
MaxValue=100

[MeterImageBack]
Meter=Image
W=240
H=240
ImageName=#@#Images\Stone.jpg
ImageTint=120,120,120,255
Container=MeterRoundBack

[MeterRoundBack]
Meter=Roundline
W=120
H=120
StartAngle=4.712
RotationAngle=6.283
LineLength=60
Solid=1
AntiAlias=1

[MeterImage]
Meter=Image
W=240
H=240
ImageName=#@#Images\Stone.jpg
Container=MeterRoundline

[MeterRoundline]
Meter=Roundline
MeasureName=MeasureLoop
W=120
H=120
StartAngle=4.712
RotationAngle=6.283
LineLength=60
Solid=1
AntiAlias=1

GIF.gif



Stone.jpg:
Stone.jpg
You do not have the required permissions to view the files attached to this post.