Adding alpha to an rgb value from an INFO label
#1
I have a info label that returns an rgb color value

Code:
$INFO[Window(home).Property(rgb_value)]

How can I add an alpha value to this, I've tried the following but neither works

Code:
<colordiffuse>a0$INFO[Window(home).Property(rgb_value)]</colordiffuse>
<colordiffuse>$INFO[Window(home).Property(rgb_value),a0]</colordiffuse>

I can place them inside a <label> and they output the correct string but it wont work in the colordiffuse tags.

--------------------------------------------------------------------------------------------------------------------------------------

OK, so I can get it to work if I assign the info label  and alpha to a variable and use that which is kind of strange.

Code:
<variable name="testcolor">
  <value>$INFO[Window(home).Property(rgb_value),a0]</value>
</variable>

Code:
<colordiffuse>$VAR[testcolor]</colordiffuse>
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Adding alpha to an rgb value from an INFO label00