Class representing a color
It holds 3 number values ( preferrably in the range "0-1", but you can use any predetermined scale you want), corresponding to red, blue and green
const redColor = new Color(1, 0, 0)redColor.toArray() // -> [1,0,0]
Converts the Color object instance to an array
an array of numbers representing the current state of the color instance
Generated using TypeDoc
Class representing a color
Remarks
It holds 3 number values ( preferrably in the range "0-1", but you can use any predetermined scale you want), corresponding to red, blue and green
Example