It is currently September 30th, 2024, 1:34 am
General topics related to Rainmeter.
XANCI
Posts: 104 Joined: September 18th, 2011, 6:37 am
Location: Nanjing, China
Post
by XANCI » August 31st, 2012, 9:43 am
Code: Select all
[MeasurePower]
Measure=Plugin
Plugin=Plugins\PowerPlugin.dll
PowerState=PERCENT
[MeasureScript]
Measure=Script
ScriptFile="#CURRENTPATH#Color.lua"
Option=MeasurePower
Code: Select all
function Initialize()
ms=SKIN:GetMeasure(SELF:GetOption('Option'))
end
function Update()
i=ms:GetValue()
if i<50 then
return '255,'..(i/50*255)..',0'
else
return (255-(i-50)/50*255)..',255,0'
end
end
then use
[MeasureScript] with
DynamicVariables=1
thatsIch
Posts: 446 Joined: August 7th, 2012, 9:18 pm
Post
by thatsIch » September 10th, 2012, 8:21 am
just a suggestion:
you could have prolly used the imagetint function
instead using different images
reason:
its allround
if you want a new wallpaper you need to re-create all the wallpapers