Algosim documentation: ToGreyscale

ToGreyscale

Returns a colour or a pixmap converted to greyscale.

Syntax

Description

If c is a colour, then ToGreyscale(c) returns c with its saturation set to 0.

If pm is a pixmap, then ToGreyscale(pm) returns pm converted to greyscale.

Examples

ToGreyscale(ExampleData("harvestman"))

Image 1

See also