ColorTools - Maple Programming Help

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

ColorTools

 Lighten
 create a new color with higher brightness

 Calling Sequence Lighten(color) Lighten(color, factor)

Parameters

 color - color format recognized by ColorTools factor - positive number

Description

 • The Lighten command creates a new Color structure which has the same hue and chroma as the input color, but is multiplied by a factor of 1.2. In other words, the new Color structure is lighter by a factor of 1.2.
 • If the optional parameter factor is given the output is lightened by that factor if it is greater than 1, and the reciprocal otherwise.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{Lighten}\left("DarkRed"\right)$
 ${⟨}\colorbox[rgb]{0.654901960784314,0,0}{{RGB : 0.654 0 0}}{⟩}$ (1)
 > $\mathrm{Lighten}\left("DarkRed",1.5\right)$
 ${⟨}\colorbox[rgb]{0.815686274509804,0,0}{{RGB : 0.818 0 0}}{⟩}$ (2)
 > $\mathrm{Lighten}\left("DarkRed",\frac{1}{1.5}\right)$
 ${⟨}\colorbox[rgb]{0.815686274509804,0,0}{{RGB : 0.818 0 0}}{⟩}$ (3)

Compatibility

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