Algosim documentation: darken

darken

Darkens a colour or a pixmap.

Syntax

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

Image 1

darken(ans)

Image 2

See also