 Adjust - Maple Help

ColorTools

 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. It uses the cylindrical perceptual color space LCH to make the adjustment and then projects back to a displayable color in the original colorspace unless the raw option is given.
 • Contrast this command with the quartet of Lighten, Darken, Saturate, and Desaturate which use the HSV non-perceptual colorspace. Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\left(\mathrm{Adjust}\left("DarkRed",\mathrm{lightness}=15\right)\right)::\left(\mathrm{Lighten}\left("DarkRed",1.5\right)\right)$
 $\left({⟨}\colorbox[rgb]{0.772549019607843,0.203921568627451,0.129411764705882}{{RGB : 0.771 0.204 0.129}}{⟩}\right){::}\left({⟨}\colorbox[rgb]{0.819607843137255,0,0}{{RGB : 0.818 0 0}}{⟩}\right)$ (1)
 > $\left(\mathrm{Adjust}\left("DarkRed",\mathrm{lightness}=-15\right)\right)::\left(\mathrm{Darken}\left("DarkRed",1.5\right)\right)$
 $\left({⟨}\colorbox[rgb]{0.192156862745098,0.00784313725490196,0.00392156862745098}{{RGB : 0.191 0.00669 0.00226}}{⟩}\right){::}\left({⟨}\colorbox[rgb]{0.364705882352941,0,0}{{RGB : 0.363 0 0}}{⟩}\right)$ (2)
 > $\left(\mathrm{Adjust}\left("DarkRed",\mathrm{lightness}=45,\mathrm{raw}\right)\right)::\left(\mathrm{Adjust}\left("DarkRed",\mathrm{lightness}=45\right)\right)$
 $\left({⟨}\colorbox[rgb]{1,0.572549019607843,0.482352941176471}{*RGB* : 1.14 0.476 0.362}{⟩}\right){::}\left({⟨}\colorbox[rgb]{1,0.572549019607843,0.486274509803922}{RGB : 1 0.572 0.488}{⟩}\right)$ (3)
 > $\left(\mathrm{Adjust}\left("DarkRed",\mathrm{chroma}=15\right)\right)::\left(\mathrm{Saturate}\left("DarkRed",1.5\right)\right)$
 $\left({⟨}\colorbox[rgb]{0.537254901960784,0.00784313725490196,0.00392156862745098}{{RGB : 0.538 0.00956 0.00309}}{⟩}\right){::}\left({⟨}\colorbox[rgb]{0.545098039215686,0,0}{{RGB : 0.545 0 0}}{⟩}\right)$ (4)
 > $\left(\mathrm{Adjust}\left("DarkRed",\mathrm{chroma}=-15\right)\right)::\left(\mathrm{Desaturate}\left("DarkRed",1.5\right)\right)$
 $\left({⟨}\colorbox[rgb]{0.513725490196078,0.109803921568627,0.0588235294117647}{{RGB : 0.512 0.108 0.0582}}{⟩}\right){::}\left({⟨}\colorbox[rgb]{0.545098039215686,0.180392156862745,0.180392156862745}{{RGB : 0.545 0.182 0.182}}{⟩}\right)$ (5)
 > $\left(\mathrm{Adjust}\left("DarkRed",\mathrm{chroma}=15,\mathrm{raw}\right)\right)::\left(\mathrm{Adjust}\left("DarkRed",\mathrm{chroma}=15\right)\right)$
 $\left({⟨}\colorbox[rgb]{0.541176470588235,0,0.0196078431372549}{{*RGB* : 0.573 -0.134 -0.0315}}{⟩}\right){::}\left({⟨}\colorbox[rgb]{0.537254901960784,0.00784313725490196,0.00392156862745098}{{RGB : 0.538 0.00956 0.00309}}{⟩}\right)$ (6) Compatibility

 • The ColorTools[Adjust] command was introduced in Maple 18.