Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1538

Help: Rainmeter Skins • Re: Variable CPU data but fixed BAR width ... and a 2nd problem

$
0
0
My bad, the stroke dashes on rectangles will move all over the place and be inconsistent with the expected result here because the stroke follows the shape's perimeter and doesn't represent a straight line. Changing the Shapes to Lines fixes this, and yields the expected result:

{code clipped}
Well, this case is not that complicated to not worth the trouble, IMHO. :confused:
I am happy to see people looking at uses for the StrokeDashes parameter of the Shape meter. It has many uses in shape strokes but is sadly neglected.

So, kudos to Youkai1977 and Yincognito for demonstrating some of the StrokeDash abilities.

I expanded Yincognito's demo skin with some added text, alternate dash/gap settings, colors, and expandable width.
Sorry Yincognito, I couldn't help myself :Whistle
dashgap.gif
Code:

Code:

[Variables]; 200 to ??BarWidth=250[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1BackgroundMode=2SolidColor=0,0,0,255MouseScrollUpAction=[!WriteKeyValue Variables BarWidth (Clamp(#BarWidth#+25,150,750))][!Refresh]MouseScrollDownAction=[!WriteKeyValue Variables BarWidth (Clamp(#BarWidth#-25,150,750))][!Refresh]---Measures---[Value1]Measure=CalcFormula=RandomUpdateRandom=1LowBound=0HighBound=5MinValue=0MaxValue=5[Value2]Measure=CalcFormula=RandomUpdateRandom=1LowBound=0HighBound=100MinValue=0MaxValue=100[Value3]Measure=CalcFormula=RandomUpdateRandom=1LowBound=0HighBound=250MinValue=0MaxValue=250---Meters---[Title]Meter=StringX=(#BarWidth#*0.62)FontColor=220,220,220StringAlign=CenterText=Stroke Dash/Gap Line Bars[Value1Label]Meter=StringMeasureName=Value1Y=20FontColor=255,255,255[Value2Label]Meter=StringMeasureName=Value2Y=34FontColor=255,255,255[Value3Label]Meter=StringMeasureName=Value3Y=48FontColor=255,255,255[Grid]Meter=ShapeX=25Y=([Value1Label:Y])Shape=Rectangle 0,0,#BarWidth#,40 | StrokeWidth 0 | Fill Color 32,32,32,255[Bars]Meter=ShapeX=25Y=([Value1Label:Y]+5)W=(#BarWidth#+5)H=40Shape =Line 0, 0,(#BarWidth#*[Value1:%]/100), 0 | Extend Attrib1Shape2=Line 0,15,(#BarWidth#*[Value2:%]/100),15 | Extend Attrib2Shape3=Line 0,30,(#BarWidth#*[Value3:%]/100),30 | Extend Attrib3Attrib1=Fill Color 0,0,0,0 | Stroke Color 228,28,28,255 | StrokeWidth 10 | StrokeDashes 0.4,0.1 | StrokeDashOffset 0.0Attrib2=Fill Color 0,0,0,0 | Stroke Color 28,228,28,255 | StrokeWidth 10 | StrokeDashes 0.1,0.4 | StrokeDashOffset 0.0Attrib3=Fill Color 0,0,0,0 | Stroke Color 68,108,228,255 | StrokeWidth 10 | StrokeDashes 0.3,0.2 | StrokeDashOffset 0.0DynamicVariables=1[Range1]Meter=StringX=([Bars:XW]+5)Y=20FontColor=255,255,255Text=0 ~ 5.0DynamicVariables=1[Range2]Meter=StringX=([Bars:XW]+5)Y=34FontColor=255,255,255Text=0 ~ 100DynamicVariables=1[Range3]Meter=StringX=([Bars:XW]+5)Y=48FontColor=255,255,255Text=0 ~ 250DynamicVariables=1

Statistics: Posted by eclectic-tech — Today, 2:10 am



Viewing all articles
Browse latest Browse all 1538

Trending Articles