ToMonochromatic
Returns a colour or a pixmap with its hue set to a fixed value and its saturation set to 1
.
Syntax
-
ToMonochromatic(c, h)
-
c
is a colour -
h
is a real number
-
-
ToMonochromatic(pm, h)
-
pm
is a pixmap -
h
is a real number
-
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)