desaturate

desaturate color by given percentage (0.0-1.0)


Parameters

desaturate color :color
           percent :floating

Returns

  • :color

Examples

copy
desaturate #red 0.2 ; => #E61919 desaturate #red 0.5 ; => #BF4040 desaturate #9944CC 0.3 ; => #9558B8

Related