whiten
Lightens a colour or a pixmap.
Syntax
-
whiten(c)
-
c
is a colour
-
-
whiten(pm)
-
pm
is a pixmap
-
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")
whiten(ans)