darken
Darkens a colour or a pixmap.
Syntax
-
darken(c)-
cis a colour
-
-
darken(pm)-
pmis 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)
