Algosim documentation: ToMonochromatic

ToMonochromatic

Returns a colour or a pixmap with its hue set to a fixed value and its saturation set to 1.

Syntax

Description

If c is a colour, then ToMonochromatic(c, h) returns the colour with the same value as c but with hue h and saturation 1.

If pm is a pixmap, then ToMonochromatic(pm, h) returns the pixmap obtained from pm by setting the hue and saturation of each pixel to h and 1, respectively, but keeping the original value.

Examples

ToMonochromatic(ExampleData("Sally"), 60)

Image 1

See also