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),)
![](http://img373.imageshack.us/img373/6127/fooscplgreen1ft2.th.png)
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),)
![](http://img394.imageshack.us/img394/1561/fooscplgreen2os5.th.png)
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),)
![](http://img166.imageshack.us/img166/9062/fooscplgreen3tm0.th.png)
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),)
[![](http://img468.imageshack.us/img468/5883/fooscplgreen4jk2.th.png)
I still don't know where the green came from.