fromColor

fun fromColor(color: Color, result: Cartesian4? = definedExternally): Cartesian4(source)

Creates a Cartesian4 instance from a Color. red, green, blue, and alpha map to x, y, z, and w, respectively.

Return

The modified result parameter or a new Cartesian4 instance if one was not provided.

Parameters

color

The source color.

result

The object onto which to store the result.

See also