It feels like a bit of a waste of time to me... I'd really like to remove it and add E.HSBtoRGB instead, that does the hue conversion without relying on graphics. You could then do Graphics.setColor(E.HSBtoRGB(h,s,b)) instead, but if you were trying to do something like cycle hue on some LEDs, you could just use it directly.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
So... who actually uses
Graphics.setcolorHSV
?It feels like a bit of a waste of time to me... I'd really like to remove it and add
E.HSBtoRGB
instead, that does the hue conversion without relying on graphics. You could then doGraphics.setColor(E.HSBtoRGB(h,s,b))
instead, but if you were trying to do something like cycle hue on some LEDs, you could just use it directly.