copy

fun copy(color: Color): Color

Sets this color to the components of a specified color.

Return

this color with its components set to that of the specified color

Parameters

color

the color specifying the new components