convert

inline fun <T : Color> Color.convert(): T

Convert this color to color space T.

Return

color as T

Throws


fun convert(fromColor: Color, toType: ColorType): Color?

Convert fromColor to color space toType.

Return

color as toType

Throws