Get() returns RGB values while the colorMode is set to HSB

I’ve swicthed to p5.js from Procesisng.js today (I’ll miss that dude) and already encountered a problem.

get() returns an RGB value but my canvas is set to HSB mode. As far as I remember that wasn’t happening when I was working with Processing.js; it used to return according to the colorMode of the sketch.

Is there a way to convert it?


You can use the hue(), saturation() and brightness() functions.