ColorTools - Maple Programming Help

Home : Support : Online Help : Graphics : Packages : ColorTools : ColorTools/Desaturate

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, but its saturation is lower by a factor of 1.2.
 • If the optional parameter factor is given the output has its saturation decreased by that factor if it is less than 1, and the reciprocal otherwise.

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)

Compatibility

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