UIElement:color

Returns this element’s color multiplier. The alpha component of the returned color is always 1.

Usage

ui_element:color()

Returns

Name Type Description
multiplier Color Color multiplier.

Examples

local image = crystal.Image:new(crystal.assets.get("sword.png"));
image:set_color(crystal.Color.blue_martina);
love.graphics.setColor(image:color());
love.graphics.circle("fill", 100, 100, 20);

This site uses Just the Docs, a documentation theme for Jekyll.