fromCartesian4

fun fromCartesian4(cartesian: Cartesian4, result: Color? = definedExternally): Color(source)

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

Return

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

Parameters

cartesian

The source cartesian.

result

The object onto which to store the result.

See also