map

fun <T : Color> T.map(transform: ColorMapper<T>): T

Return an new color in the same color space that is the result of applying transform to the components of this color.