I'm making a network speed skin that uses Speedtest's gradients. Currently, we have BarImage. That's great because I can boot up Photoshop and create an image for what I'm doing. However, no such equivalent exists for the Line meter. This would really pay off in terms of aesthetics.
Examples:
It is currently March 29th, 2024, 2:18 pm
[Suggestion]BarImage for Line Meter
-
- Posts: 3
- Joined: March 4th, 2021, 6:22 pm
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: [Suggestion]BarImage for Line Meter
Actually it can be doneusing containers. Here is an example: starting from the Example skin posted on the Line meter help page:GamingZacharyC wrote: ↑May 28th, 2021, 6:23 pm I'm making a network speed skin that uses Speedtest's gradients. Currently, we have BarImage. That's great because I can boot up Photoshop and create an image for what I'm doing. However, no such equivalent exists for the Line meter. This would really pay off in terms of aesthetics.
Code: Select all
;This is the original code, posted on Line meter's help page
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
[Metadata]
Name=ExampleMeterLine
Author=The Rainmeter Team
Information=Example of the Line meter
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=1.0
[MeterBackground]
Meter=Image
W=220
H=80
SolidColor=150,150,150,255
[MeasureNetIn]
Measure=NetIn
[MeasureNetOut]
Measure=NetOut
[MeterNetworkLine]
Meter=Line
MeasureName=MeasureNetOut
MeasureName2=MeasureNetIn
X=5
Y=5
W=210
H=70
LineCount=2
LineColor=140,252,124,255
LineColor2=254,211,122,255
SolidColor=0,0,0,255
AutoScale=1
AntiAlias=1
Code: Select all
[MeterNetworkLine]
Meter=Line
MeasureName=MeasureNetOut
MeasureName2=MeasureNetIn
X=5
Y=5
W=210
H=70
LineCount=2
LineColor=140,252,124,255
LineColor2=254,211,122,255
;SolidColor=0,0,0,255
AutoScale=1
AntiAlias=1
[MeterImage]
Meter=Image
ImageName=#@#MyImage.png
X=0
Y=0
W=210
H=70
Container=MeterNetworkLine
-
- Rainmeter Sage
- Posts: 2588
- Joined: March 23rd, 2015, 5:26 pm
Re: [Suggestion]BarImage for Line Meter
I don't think that is what the OP is asking for. He wants the LINES to change color, like you can do with the bars on the Bar meter. This would require some sort of masking or XORing drawing magic, so the lines "reveal" the image under the graph. It's a cool idea, but I'm guessing it would be pretty hard to do.balala wrote: ↑May 28th, 2021, 7:35 pm Actually it can be doneusing containers. Here is an example: starting from the Example skin posted on the Line meter help page:
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: [Suggestion]BarImage for Line Meter
Maybe I'm missing the point as well, but I would think this:
Code: Select all
[Rainmeter]
Update=100
DynamicWindowSize=1
AccurateText=1
[Variables]
[MeasureValue]
Measure=Loop
StartValue=1
EndValue=100
[MeterImage]
Meter=Image
ImageName=#@#Images\ColorSpectrum.png
Container=MeterLine
[MeterLine]
Meter=Line
MeasureName=MeasureValue
X=5
Y=5
W=210
H=70
LineCount=1
LineColor=140,252,124,255
SolidColor=0,0,0,1
AutoScale=1
AntiAlias=1
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 2588
- Joined: March 23rd, 2015, 5:26 pm
-
- Rainmeter Sage
- Posts: 5384
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: [Suggestion]BarImage for Line Meter
Building on the image version, you could use a shape meter with the same dimensions as the line meter with a gradient fill that is revealed by the value of the line meter.
Code: Select all
[Rainmeter]
Update=500
DynamicWindowSize=1
AccurateText=1
[Variables]
[MeasureValue]
Measure=Calc
Formula=Random
LowBound=0
HighBound=100
DynamicVariables=1
[MeterGradientShape]
Meter=Shape
Shape=Rectangle 5,5,210,70 | StrokeWidth 0 | Fill LinearGradient MyGradient
MyGradient= 90 | 0,0,200,255 ; 0.1 | 0,255,0,255 ; 0.5 | 255,0,0,255 ; 0.9
Container=MeterLine
[MeterLine]
Meter=Line
MeasureName=MeasureValue
X=5
Y=5
W=210
H=70
LineCount=1
LineColor=255,255,255,255
SolidColor=0,0,0,1
AutoScale=1
AntiAlias=1
You do not have the required permissions to view the files attached to this post.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 2588
- Joined: March 23rd, 2015, 5:26 pm
Re: [Suggestion]BarImage for Line Meter
Works for histograms, too!
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: [Suggestion]BarImage for Line Meter
But yours practically is the same solution as mine, isn't it?
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
-
- Posts: 3
- Joined: March 4th, 2021, 6:22 pm
Re: [Suggestion]BarImage for Line Meter
So the problem with all of these solutions is that all of them require a solid background. Currently, I'm making a suite of skins in the style of the illustro (default) pack. Here's what I currently have, and what I want to have can be found in the original post.
You do not have the required permissions to view the files attached to this post.