InvertValue
Returns a colour or pixmap value inverted.
Syntax
-
InvertValue(c)-
cis a colour
-
-
InvertValue(pm)-
pmis a pixmap
-
Description
If c is a colour, then InvertValue(c) returns the value-inverted colour of c. This is obtained by replacing the value with its complement, that is,
InvertValue(hsv(h, s, v)) = hsv(h, s, 1 − v).
If pm is a pixmap, then InvertValue(pm) returns pm with every pixel value inverted as described above.
Examples
InvertValue(ExampleData("Sally"))
