TransparentSpriteColor()

Syntax

TransparentSpriteColor(#Sprite, Color)
Description
Changes the sprite transparent color (when displayed with DisplayTransparentSprite()).

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

<- TransformSprite() - Sprite Index - ZoomSprite() ->