skeleton:setFillColor()

Type: function
See also: skeleton

Overview:


Tints the entire skeleton with a color. You can specify a single grayscale value or separate RGBA values. The alpha (a) defaults to 1 if omitted.

Syntax:


skeleton:setFillColor(r, [g, [b, [a]]])

Example:


hero:setFillColor(1, 0, 0, 0.5) -- A red tint at 50% opacity