Language

Entity:setColor


Entity:setColor(int r, int g, int b, int a)

Description

Set the entity's color. Will only work on text, rectangle, sprite and animation.
For sprite and animation, the color will be multiply with the sprite's texture.

Parameters

r
The red color.
g
The green height.
b
The blue height.
a
The alpha .