ColorTools - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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

ColorTools

 Adjust
 create a new color with different lightness and chroma

 Calling Sequence Adjust(color, chroma=c, lightness=l)

Parameters

 color - color format recognized by ColorTools c - (optional) numeric adjustment to chroma between -100 and 100 l - (optional) numeric adjustment to lightness between -100 and 100

Description

 • The Adjust command creates a new Color structure which has the same hue as the input color, but with altered lightness and/or saturation.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{Adjust}\left("DarkRed",\mathrm{lightness}=15\right)=\mathrm{Lighten}\left("DarkRed",1.5\right)$
 ${⟨}\colorbox[rgb]{0.725490196078431,0.215686274509804,0.137254901960784}{{RGB : 0.726 0.217 0.139}}{⟩}{=}{⟨}\colorbox[rgb]{0.815686274509804,0,0}{{RGB : 0.818 0 0}}{⟩}$ (1)
 > $\mathrm{Adjust}\left("DarkRed",\mathrm{lightness}=-15\right)=\mathrm{Darken}\left("DarkRed",1.5\right)$
 ${⟨}\colorbox[rgb]{0.392156862745098,0.0431372549019608,0}{{RGB : 0.393 0.0447 0}}{⟩}{=}{⟨}\colorbox[rgb]{0.364705882352941,0,0}{{RGB : 0.363 0 0}}{⟩}$ (2)
 > $\mathrm{Adjust}\left("DarkRed",\mathrm{chroma}=15\right)=\mathrm{Saturate}\left("DarkRed",1.5\right)$
 ${⟨}\colorbox[rgb]{0.580392156862745,0.0784313725490196,0.0392156862745098}{{RGB : 0.582 0.0787 0.0399}}{⟩}{=}{⟨}\colorbox[rgb]{0.545098039215686,0,0}{{RGB : 0.545 0 0}}{⟩}$ (3)
 > $\mathrm{Adjust}\left("DarkRed",\mathrm{chroma}=-15\right)=\mathrm{Desaturate}\left("DarkRed",1.5\right)$
 ${⟨}\colorbox[rgb]{0.494117647058824,0.125490196078431,0.0745098039215686}{{RGB : 0.492 0.126 0.0727}}{⟩}{=}{⟨}\colorbox[rgb]{0.545098039215686,0.180392156862745,0.180392156862745}{{RGB : 0.545 0.182 0.182}}{⟩}$ (4)

Compatibility

 • The ColorTools[Adjust] command was introduced in Maple 18.
 • For more information on Maple 18 changes, see Updates in Maple 18.

 See Also