Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 719 Bytes

decentraland-ecs.color3.toarray.md

File metadata and controls

21 lines (14 loc) · 719 Bytes

Home > decentraland-ecs > Color3 > toArray

Color3.toArray method

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

Parameters

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