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

(part of UI)

Returns: color

Parameters: aColor (color)

Returns a color object copied from aColor.

Note: Always copy a color before modifying it; else you may modify the original.

Usage

var aColor = UI.makeColor (255, 0, 0, 1.0);
var bColor = UI.copyColor (aColor);
bColor.green = 255;
// aColor is red
// bColor is red=255,Green=255

Version

0.3 Introduced; Docs Valid

Clone this wiki locally