processing proce55ing p5 hue()

hue range is where to where?
it is assigned by you: colorMode(HSB, 360, 360, 360);//hue,saturation,brightness

in this situation, hue range is up to 359.
then, i explain color change.

hue(0) is red.
hue(60) is yellw.
hue(120) is green.
hue(180) is cyan.
hue(240) is blue.
hue(300) is pink.
hue(359) is red.

and so on...