darken
Darkens a colour or a pixmap.
Syntax
-
darken(c)
-
c
is a colour
-
-
darken(pm)
-
pm
is a pixmap
-
Description
If c
is a colour, then darken(c)
returns the colour obtained by halving each RGB component of c
.
If pm
is a pixmap, then darken(pm)
returns the pixmap obtained by halving each RGB component of each pixel of pm
.
Examples
ExampleData("rabbit")
darken(ans)