ChaosPro Home
Introduction
What's New
Palettes
Using Formulas
Layering in ChaosPro
Rendering
Fractal Parameter Windows
Windows
Menu
3D Transformations
Animations
Formula Compiler
Writing Formulas
Language Reference
Introduction
Basic Syntax
Datatypes
Constants
Variables
Expressions
Operators
Functions
Arithmetic
Conversion
Color
rgb
rgba
hsl
hsla
red
green
blue
alpha
hue
sat
lum
blend
compose
gradient
merge
Trigonometric
Miscellaneous
Control Structures
Compiler Directives
Functions
Interface to ChaosPro
Special Features, Notes...
Compatibility
Fractal Type Reference
Tutorials
Appendix
CHAOSPRO 4.0
Release 4.0
.

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.