Skip to content
kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of UI)

Returns: color

Parameters: red, green, blue (all numbers, 0-255), alpha (number, 0-1)

Returns a color object of the form:

{
    red: red,
    green: green,
    blue: blue,
    alpha: alpha
}

When applied to CSS, a color with an alpha of 0 will be applied as "transparent". If a color is null, "inherit" will be applied instead. Otherwise, the color is typically applied with RGBA(red,green,blue,alpha).

Usage

var aColor = UI.makeColor ( 255, 0, 0, 1.0 );
//aColor will be red.

Version

0.3 Introduced; Docs Valid

Clone this wiki locally