GenSetSpriteColor


GenSetSpriteColor sprite, red, green, blue, alpha

sprite

Game Engine sprite object to set.

red

The sprite red color level.

green

The sprite green color level.

blue

The sprite blue color level.

alpha

The sprite alpha (transparency) level.


All of these values are in percent and may be 0-100. By default color levels will be at 100 percent. Lowering these values subtracts color from the sprite. A lower alpha level will make the sprite more transparent.


Game Engine Overview







Become a Patron