Who uses Graphics.setcolorHSV
?
#437
Unanswered
gfwilliams
asked this question in
JavaScript
Replies: 5 comments
-
Posted at 2015-07-24 by @gfwilliams No, it was a pull request from someone who thought it'd be handy - I've never seen any API that looks like that ;) I often use HSV when driving RGB LEDs, but unless you're driving an LED matrix using the Graphics lib, the current solution is less than ideal! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2015-07-27 by @gfwilliams Thanks - I'll take a look at that when I do it. Bug here: espruino/Espruino#554 Thanks for saying about the 361 thing. It's probably some |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2015-07-24 by @gfwilliams
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.Beta Was this translation helpful? Give feedback.
All reactions