SetSpriteColor
Description
Set the color of a sprite.
Definition
SetSpriteColor( iSpriteIndex, iRed, iGreen, iBlue, iAlpha )
void agk::SetSpriteColor( uint32_t iSpriteIndex, int iRed, int iGreen, int iBlue, int iAlpha )
Parameters
- iSpriteIndex - The ID of the sprite to modify.
- iRed - The red component of the color.
- iGreen - The green component of the color.
- iBlue - The blue component of the color.
- iAlpha - The alpha component of the color. The acceptable range is from 0 to 255. When a value of 0 is used the sprite will be invisible. When a value of 255 is used the sprite will be fully opaque.