TransparentSpriteColor()

语法

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

参数

#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.

返回值

无.

参阅

DisplayTransparentSprite(), RGB()

已支持操作系统

所有

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