ColorTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : Color and Color Object Manipulation Commands : ColorTools/Lighten

ColorTools

  

Lighten

  

create a new color with higher lightness

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Lighten(color, factor)

Parameters

color

-

color format recognized by ColorTools

factor

-

(optional) positive number

Description

• 

The Lighten 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 1.2. In other words, the new Color structure is lighter by a factor of 1.2, if possiblewithin the bounds of the HSV colorspace.

• 

If the optional parameter factor is given the output is lightened by that factor if it is greater than 1, and the reciprocal otherwise. Use the Darken command to decrease the lightness.

• 

A more perceptually accurate lightening can be achieved using the Adjust command.

Examples

withColorTools:

LightenDarkRed

RGB : 0.654 0 0

(1)

LightenDarkRed,1.5

RGB : 0.818 0 0

(2)

LightenDarkRed,11.5

RGB : 0.818 0 0

(3)

LightenBlack

RGB : 0.00469 0.00469 0.00469

(4)

Compatibility

• 

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

• 

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

• 

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

See Also

ColorTools

ColorTools/ColorSpaces

ColorTools[Adjust]

ColorTools[Color]

ColorTools[Darken]