ColorUtility extension

on

Methods

applyColorByContrast(Color light, Color dark) Color
Returns one of the provided text colors (light and dark colors) based on the contrast each of these colors would result in if applied on in front of the main Color.
desat(double alpha) Color
Desaturates the Color by the provided alpha value.