Darken - Maple Help

ColorTools

 Darken
 create a new color with lower lightness

 Calling Sequence Darken(color) Darken(color,factor)

Parameters

 color - color format recognized by ColorTools factor - (optional) positive number compute the resulting color

Description

 • The Darken command creates a new Color structure which has the same hue and saturation as the input color (in the hardward dependent HSV colorspace), but is multiplied by a factor of 0.8. In other words, the new Color structure is darker by a factor of 0.8, if possible within the bounds of the HSV colorspace.
 • If the optional parameter factor is given the output is darkened by that factor if it is less than 1, and the reciprocal otherwise. Use the Lighten command to increase the lightness.
 • A more perceptually accurate darkening can be achieved using the Adjust command.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{Darken}\left("DarkRed"\right)$
 ${⟨}\colorbox[rgb]{0.435294117647059,0,0}{{RGB : 0.436 0 0}}{⟩}$ (1)
 > $\mathrm{Darken}\left("DarkRed",1.5\right)$
 ${⟨}\colorbox[rgb]{0.364705882352941,0,0}{{RGB : 0.363 0 0}}{⟩}$ (2)
 > $\mathrm{Darken}\left("DarkRed",\frac{1}{1.5}\right)$
 ${⟨}\colorbox[rgb]{0.364705882352941,0,0}{{RGB : 0.363 0 0}}{⟩}$ (3)

Compatibility

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