add

inline fun <F : Color, T : Color> add(crossinline converter: (F) -> T)

Add a conversion from color type F to T, specified as generic types. This is a convenient wrapper for add.


fun add(from: ColorType, to: ColorType, converter: ColorConverter<Color, Color>)

Add a one-way conversion from color type from to to. You should also add a matching reverse conversion, i.e. from to to from.