TransparentSpriteColor()
Syntax
TransparentSpriteColor(#Sprite, Color)Description
Use the specified color as the transparent sprite color (when displayed with DisplayTransparentSprite()). Only one color can be set as the transparent color and the previous alpha channel values are lost. If the sprite already have alpha information, this command is probably not needed. The sprite has to be created with #PB_Sprite_AlphaBlending flag to use this command.
Parameters
#Sprite The sprite to use. If #PB_Default is used, then the default color (black - RGB(0,0,0)) is changed to the new given one and all future loaded or created sprites will use this color as the transparent one. Color The new color to handle as transparent color. RGB() can be used to get a valid color value. A table with common colors is available here.
Return value
None.
See Also
DisplayTransparentSprite(), RGB()
Supported OS
All