Darken - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ColorTools

  

Darken

  

create a new color with lower lightness

 

Calling Sequence

Parameters

Description

Examples

Compatibility

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

withColorTools:

DarkenDarkRed

RGB : 0.436 0 0

(1)

DarkenDarkRed,1.5

RGB : 0.363 0 0

(2)

DarkenDarkRed,11.5

RGB : 0.363 0 0

(3)

Compatibility

• 

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

• 

For more information on Maple 16 changes, see Updates in Maple 16.

• 

The ColorTools[Darken] command was updated in Maple 2017.

See Also

ColorTools

ColorTools/ColorSpaces

ColorTools[Adjust]

ColorTools[Color]

ColorTools[Lighten]