fromColor
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.