Category: Images and Rendering
SetSpriteColorMod(spriteReference As Integer, red As Integer, green As Integer, blue As Integer, alpha As Integer)
Void
Sets the color modulation stored on a sprite. Future DrawSprite calls using that sprite apply the supplied RGBA tint to every frame in the sprite sheet.
Each color component is an integer from 0 to 255. A value of 255, 255, 255, 255 preserves the original sprite colors.
hero = LoadSprite("player.png", 32, 32)
SetSpriteColorMod(hero, 255, 220, 160, 255)
DrawSprite(hero, 0, 100, 80)