toArray

fun toArray(result: FloatArray, offset: Int): FloatArray

Copies this color's components to the specified array. The result is compatible with GLSL uniform vectors, and can be passed to the function glUniform4fv.

Return

the result argument set to this color's components

Parameters

result

a pre-allocated array of length 4 in which to return the components

offset

a starting index in the result array