I just stumbled onto this app a couple of hours ago so I dont know much yet.
I wish to create a clock widget where a certain percentage of the numbers are masked by a shape dependent on the value of the time. ie. the seconds informs how much of the minute numbers you can see an the minute value informs what percentage of the Hour digits you can see. The goal is to create a terribly unreadable clock.
So for example if it were 13:40:20 : 66 % of the 40 would be masked as the seconds are a third of the way to 60 seconds and 33 % of the hour would be masked as you are 2/3 of the way to 60 minutes.
It would be even better if this could be done on a per digit basis, so the single second masks the tens of seconds which masks single minutes etc.
Also would like for the mask to go from the bottom up rather than top down; not sure how to implement that.
What I am struggling with is how to extract the individual numbers from the time to do the calculations with. Also should I work with the H:M:S string or extract them all into seperate measures?
This is what I have so far.
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0
[Variables]
[MeasureTime1]
Measure=Time
Format=%H:%M:%S
[MeterTime]
Meter=String
MeasureName=MeasureTime1
FontSize=40
FontColor="0,0,255"
AntiAlias=1
[CoverContainerHour]
Meter=Shape
Shape=Rectangle 0,0,60,30,0 | Fill Color 0,0,0 | Strokewidth 0
; I wish to alter the '30' here to be a variable based on time
[CoverContainerMinute]
Meter=Shape
Shape=Rectangle 75,0,60,40,0 | Fill Color 0,0,0 | Strokewidth 0
; again the '40' here should be based on the seconds