toBytes

fun toBytes(result: ReadonlyArray<Double>? = definedExternally): ReadonlyArray<Double>(source)

Converts this color to an array of red, green, blue, and alpha values that are in the range of 0 to 255.

Return

The modified result parameter or a new instance if result was undefined.

Parameters

result

The array to store the result in, if undefined a new instance will be created.

See also