Predefined Functions – hue

Function name: hue – Return hue of argument
Synopsis: hue(c)


Input data type Output data type
color real

Description:

This function takes a color variable as input and returns the hue of the color. The hue of a color is always between 0 and 6. For more information about hue, saturation and luminance see HSL Colorspace.

Colors can be created by using one of the color creation functions:

Internally colors are stored in RGBA format. So in order to return the hue of a color, this function needs to do a color space conversion, which is quite slow.

hue