clone

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

Duplicates a Color.

Return

The modified result parameter or a new instance if result was undefined. (Returns undefined if color is undefined)

Parameters

color

The Color to duplicate.

result

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

See also