setColor


Description:

[ CCode ( cname = "sfSprite_setColor" ) ]
public void setColor (Color color)

Set the global color of the sprite.

This color is modulated (multiplied) with the sprite's texture. It can be used to colorize the sprite, or change its global opacity. By default, the sprite's color is opaque white.

Parameters:

color

New color of the sprite

See also:

getColor