BRIGHTEN function

BRIGHTEN(Color, Amount) BRIGHTEN(Color; Amount)

Color

Color or { Color }

The color to brighten.

Amount

Number or { Number }

A number between 0 and 100 (inclusive), where 0 means that no modifications should be made and 100 means that the resulting color should be white.

Returns

Color or { Color }

A brightened version of the given color.

Brightens the given color by a specified amount. The implementation uses the Hue-Saturation-Lightness (HSL) color model to linearly increase the saturation and lightness with the given amount, relative to their existing values. Use DIM to perform the reverse operation.

This function is Calcapp-specific.

Examples

BRIGHTEN(Color.Red, 50)BRIGHTEN(Color,Red; 50)

Returns a variant of the default red color, which has been brightened by 50 percent.

BRIGHTEN({ Color.Red, Color.Green }, 50)BRIGHTEN({ Color,Red; Color,Green }; 50)

Returns variants of the default red and green colors, which have both been brightened by 50 percent.

BRIGHTEN({ Color.Red, Color.Green }, { 50, 25 })BRIGHTEN({ Color,Red; Color,Green }; { 50; 25 })

Returns variants of the default red and green colors, which have been brightened by 50 and 25 percent, respectively.