Algosim documentation: ShiftHue

ShiftHue

Returns a colour or a pixmap with its hue translated by a specified amount.

Syntax

Description

If c is a colour, then ShiftHue(c, δ) returns the colour with the same saturation and value as c but with its hue translated by δ degrees.

If pm is a pixmap, then ShiftHue(pm, δ) returns the pixmap obtained from pm by adding δ degrees to the hue of each pixel but keeping its original saturation and value.

Examples

ShiftHue(ExampleData("Sally"), 60)

Image 1

See also