Algosim documentation: InvertValue

InvertValue

Returns a colour or pixmap value inverted.

Syntax

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"))

Image 1

See also