InvertLightness
Returns a colour or pixmap lightness inverted.
Syntax
-
InvertLightness(c)
-
c
is a colour
-
-
InvertLightness(pm)
-
pm
is a pixmap
-
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"))