Desaturate - Maple Help

ColorTools

 Desaturate
 create a new color with lower saturation

 Calling Sequence Desaturate(color) Desaturate(color, factor)

Parameters

 color - color format recognized by ColorTools factor - positive number

Description

 • The Desaturate command creates a new Color structure which has the same hue and lightness as the input color (in the hardward dependent HSV colorspace), but its saturation is multiplied by a factor of 0.8. In other words, the new Color structure is less colorful by a factor of 0.8, if possible within the bounds of the HSV colorspace.
 • If the optional parameter factor is given the output is desaturated by that factor if it is greater than 1, and the reciprocal otherwise. Use the Saturate command to increase the saturation.
 • A more perceptually accurate saturation adjustment can be achieved using the Adjust command.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{Desaturate}\left("Coral"\right)$
 ${⟨}\colorbox[rgb]{1,0.6,0.450980392156863}{RGB : 1 0.598 0.451}{⟩}$ (1)
 > $\mathrm{Desaturate}\left("Coral",1.5\right)$
 ${⟨}\colorbox[rgb]{1,0.666666666666667,0.541176470588235}{RGB : 1 0.665 0.542}{⟩}$ (2)
 > $\mathrm{Desaturate}\left("Coral",\frac{1}{1.5}\right)$
 ${⟨}\colorbox[rgb]{1,0.666666666666667,0.541176470588235}{RGB : 1 0.665 0.542}{⟩}$ (3)
 > $\mathrm{Desaturate}\left("Black"\right)$
 ${⟨}\colorbox[rgb]{0,0,0}{{RGB : 0 0 0}}{⟩}$ (4)

Compatibility

 • The ColorTools[Desaturate] command was introduced in Maple 16.