Color.Color Manual     Reference     Scripting  
Scripting > Runtime Classes > Color
Color.Color

static function Color (r : float, g : float, b : float, a : float) : Color

Description

Constructs a new Color with given r,g,b,a components.

var color = Color (0.2, 0.3, 0.4, 0.5);

static function Color (r : float, g : float, b : float) : Color

Description

Constructs a new Color with given r,g,b components and sets a to 1.

var color = Color (0.2, 0.3, 0.4);