Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
TargetRed=119
TargetGreen=182
TargetBlue=255
Red1=255
Green1=255
Blue1=255
Trans1=255
U=[!UpdateMeasure TransitionColor][!UpdateMeter *][!Redraw]
[MeterString1]
Meter=String
FontSize=25
FontWeight=400
FontColor=#Red1#,#Green1#,#Blue1#,#Trans1#
SolidColor=0,0,0,1
AntiAlias=1
DynamicVariables=1
Text=Hello World
MouseOverAction=[!CommandMeasure TransitionColor "Stop 2"][!CommandMeasure TransitionColor "Execute 1"]
MouseLeaveAction=[!CommandMeasure TransitionColor "Stop 1"][!CommandMeasure TransitionColor "Execute 2"]
[TransitionColor]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat Move1ToBlue,10,20
Move1ToBlue=[!SetVariable Red1 "(Clamp(#Red1#-7,#TargetRed#,255))"][!SetVariable Green1 "(Clamp(#Green1#-7,#TargetGreen#,255))"]#U#
ActionList2=Repeat Move1ToWhite,10,20
Move1ToWhite=[!SetVariable Red1 "(Clamp(#Red1#+7,#TargetRed#,255))"][!SetVariable Green1 "(Clamp(#Green1#+7,#TargetGreen#,255))"]#U#
DynamicVariables=1
As I said, colors are a bit tricky, as depending on what you are moving "to" and "from" , you will need to transition one or more of red/green/blue, and it may be that some need to increase, and others decrease to get there. The function Clamp() is useful so you don't have to exactly hit the target value, just overrun it a bit.
https://docs.rainmeter.net/manual/mouse-actions/
https://docs.rainmeter.net/manual/plugins/actiontimer/
https://docs.rainmeter.net/manual/formulas/#Functions