color( )

color() : number[];

Gets the current color value of the node, in the form [r, g, b, a]. Each component is a number between 0 and 1.

The final component, alpha, is the opacity of the object, where 0 is fully transparent and 1 is fully opaque.

Default value: [1, 1, 1, 1]

Returns

The color of the node.

Example

var c = myobject.color();
// c is [1, 1, 1, 1]
zapcode branded_zapcode i