Home > decentraland-ecs > Color3 > toArray
Stores in the given array from the given starting index the red, green, blue values as successive elements
Signature:
toArray(array: FloatArray, index?: number): Color3;
Returns: Color3
the current Color3 object
Parameter | Type | Description |
---|---|---|
array |
FloatArray |
defines the array where to store the r,g,b components |
index |
number |
defines an optional index in the target array to define where to start storing values |