How does the Hue function work ?

edited February 2018 in Questions about Code

this is my first ever post here. be patient. I'm learning the color functions, but I do not understand how does the function hue() works.

If I have the following sample code:

color c;

voide setup(){ colorMode(HSB,255); c=color(10,255,255); println(hue(c)); //here I would expect 10, instead I have 9.833333 }

void draw (){ ... }

thanks for any help



Sign In or Register to comment.