Hello all,
I want to do a blinking text for a super crazy idea I'm working on right now (when I should be focusing on more important projects like finishing Omnimo 2...)
So I have 2 meters:
[Text1]
Text=DANGER
FontColor=237,28,37,155
[Text2]
Text=DANGER
FontColor=237,28,37,255
And... um... I want it to blink at a rate of 1 Hz. How do it do it?
I tried this, but i failed:
[ImageNumberCalc]
Measure=Calc
Formula=Counter % 2
Substitute=".00000":""
IfEqualValue=1
IfEqualValue=!Execute [!RainmeterHideMeter Text2][!RainmeterShowMeter Text1]
IfEqualValue=2
IfEqualValue=!Execute [!RainmeterShowMeter Text1][!RainmeterHideMeter Text2]
Disabled=0
It is currently March 29th, 2024, 5:55 am
How to do blinking text
-
- Posts: 36
- Joined: April 13th, 2009, 12:40 am
-
- Posts: 61
- Joined: April 22nd, 2009, 7:46 pm
Re: How to do blinking text
I've actually worked on something like this before.
The 255 in the calc measure is the transparency.
[Fade]
Measure=Calc
Formula=Counter% 2 = 1 ? 255 : 0
Then you tie it to a meter
[MeterSeconds]
Meter=STRING
X=75
Y=50
W=1500
SolidColor=0,0,0,1
StringStyle=Normal
StringAlign=Center
FontColor=255,255,255,[Fade]
FontSize=60
FontFace=#FontName#
AntiAlias=1
Text=[MeasureSeconds]
DynamicVariables=1
You can do a lot of other cool things , like fading in and out text.
One thing I'm working on has text that slowing fades in and out. The max transparency that this measure allows is 10.
[FadeIn1]
Measure=Calc
Formula=Counter%20 < 11 ? ((Counter%20)*0.5) : 10-((Counter%20)*0.5)
The 255 in the calc measure is the transparency.
[Fade]
Measure=Calc
Formula=Counter% 2 = 1 ? 255 : 0
Then you tie it to a meter
[MeterSeconds]
Meter=STRING
X=75
Y=50
W=1500
SolidColor=0,0,0,1
StringStyle=Normal
StringAlign=Center
FontColor=255,255,255,[Fade]
FontSize=60
FontFace=#FontName#
AntiAlias=1
Text=[MeasureSeconds]
DynamicVariables=1
You can do a lot of other cool things , like fading in and out text.
One thing I'm working on has text that slowing fades in and out. The max transparency that this measure allows is 10.
[FadeIn1]
Measure=Calc
Formula=Counter%20 < 11 ? ((Counter%20)*0.5) : 10-((Counter%20)*0.5)
-
- Posts: 36
- Joined: April 13th, 2009, 12:40 am
Re: How to do blinking text
Awesome, you da man!