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

Help: Rainmeter Skins • Re: Thread for help with the Shape meter

$
0
0
I'd replace the condition on the X parameter and the red and green color component on the Shape2 option, with simpler things:
  • The X parameter (#ToggleState#=0?2:16) might be set to (2+14*#ToggleState#).
  • The red component (#ToggleState#=0?0:255) can be set to (255*#ToggleState#).
  • Finally the green component (#ToggleState#=0?255:0) might be set to (255*(1-#ToggleState#)).
Not that the conditions have any problem, just using simple calculations might be more intuitive. This way: Shape2=Rectangle (2+14*#ToggleState#),2,10,10,10 | Extend MyModifiers1 | Fill Color (255*#ToggleState#),(255*(1-#ToggleState#)),0,255.
Yup, however it's important to note that that will only work with ToggleState values of 0 and 1. Any other value will cause issues (like 1 and 2).

Statistics: Posted by RicardoTM — Today, 8:32 pm



Viewing all articles
Browse latest Browse all 1399

Trending Articles