Hey there,
I’m trying to convert rgb values to hsv values, but the normal algorithm doesn’t work because of FastLED’s rainbowhue.So, sb. know how to solve this?
Btw: Happy new Year 
Hey there,
I’m trying to convert rgb values to hsv values, but the normal algorithm doesn’t work because of FastLED’s rainbowhue.So, sb. know how to solve this?
Btw: Happy new Year 
Are you converting pure hues, or is there lots of desaturation (paleness/added white) ? Or do you just not know what the inputs will be?
We can’t always convert every RGB into just on exact HSV, but we can approximate. There are different approximations that work better than others depending on what you’re getting as input.
Saturation will be constant at 255…
Ok, you’re in pretty good shape then. I’ll see if I can post some sample code today.
Just curious: what’s the overall data flow? How are you winding up with RGBs but wanting HSVs? (There are lots of ways that happens, I’m just always curious.)
What do u mean by overall data flow?
I’d like to have different modes on my arduino but switching between this modes should be as smooth as possible. Some modes uses hsv (Color Wheel), other modes uses rgb, so it would be good to be able to convert it in both directions… (I can use the library to convert hsv to rgb but not the other way around)
This will get added into the library shortly, but for tonight: https://gist.github.com/kriegsman/9390779c3604e2db9dab
Well, thank you very much! I’ll try it out later
(actually I have to get the hardware installed)