I have discovered odd behavior with the alpha parameter of the $drawrect() function under SCPL. I wonder if anyone could tell me if i'm using it wrong or if I have encountered a bug.
Starting with this line of code I see a normal blue bar for the now playing item:
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-null),)
What I would like to do is make that blue bar semi-transparent so I try this, but I get a green semi-transparent bar instead of a blue one:
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-null alpha-64),)
I have tried using brushcolor-0-0-255, I have tried many other colors and many other alpha levels but every time I get a green bar instead of a blue one. I can't even get a red one. Any input would be appreciated.
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-0-0-255 pencolor-null alpha-255),)
EDIT: It appears that alpha uses pencolor not brushcolor. By using code like this I was able to achieve the desired effect:
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-10-36-106 alpha-128),)
[
I still don't know where the green came from.