Algosim documentation: whiten

whiten

Lightens a colour or a pixmap.

Syntax

Description

If c is a colour, then whiten(c) returns the colour obtained by halving the distance from 1 for each RGB component of c.

If pm is a pixmap, then whiten(pm) returns the pixmap obtained by halving the distance from 1 for each RGB component of each pixel of pm.

Examples

ExampleData("rabbit")

Image 1

whiten(ans)

Image 2

See also