convertTo

inline fun <T : ColorModel<T>> ColorRGBa.convertTo(): T(source)

Converts the current ColorRGBa instance to the specified color model type T.

Return

An instance of the specified color model type T after conversion.

Throws

if the specified color model is not supported.