Algosim documentation: InvertLightness

InvertLightness

Returns a colour or pixmap lightness inverted.

Syntax

Description

If c is a colour, then InvertLightness(c) returns the lightness-inverted colour of c. This is obtained by replacing the lightness with its complement, that is,

InvertValue(hsl(h, s, l)) = hsl(h, s, 1 − l).

If pm is a pixmap, then InvertLightness(pm) returns pm with every pixel lightness inverted as described above.

Examples

InvertLightness(ExampleData("Sally"))

Image 1

See also