hue()ColorCreating & ReadingWeb & Applicationhue_.gif
noStroke();
colorMode(HSB, 255);
color c = color(0, 126, 255);
fill(c);
rect(15, 20, 35, 60);
float value = hue(c); // Sets "value" to "0"
fill(value);
rect(50, 20, 35, 60);
Extracts the hue value from a color.
hue(color)
any value of the color datatypefloat
red()
green()
blue()
saturation()
brightness()
1.0FunctionCoreExtended