ColorTools - Maple Programming Help

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

ColorTools

 Saturate
 create a new color with higher saturation

 Calling Sequence Saturate(color) Saturate(color, factor)

Parameters

 color - color format recognized by ColorTools factor - positive number

Description

 • The Saturate command creates a new Color structure which has the same hue and lightness as the input color, but its saturation is higher by a factor of 1.2.
 • If the optional parameter factor is given the output has its saturation increased by that factor if it is greater than 1, and the reciprocal otherwise.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{Saturate}\left("Coral"\right)$
 ${⟨}\colorbox[rgb]{1,0.396078431372549,0.176470588235294}{RGB : 1 0.398 0.176}{⟩}$ (1)
 > $\mathrm{Saturate}\left("Coral",1.5\right)$
 ${⟨}\colorbox[rgb]{1,0.266666666666667,0}{RGB : 1 0.269 0}{⟩}$ (2)
 > $\mathrm{Saturate}\left("Coral",\frac{1}{1.5}\right)$
 ${⟨}\colorbox[rgb]{1,0.266666666666667,0}{RGB : 1 0.269 0}{⟩}$ (3)

Compatibility

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