Possible Hue, Saturation, and Luminesses

Is it possible to use/change the Hue, Saturation, Luminescence on the multicolored LED module or T35 display? I know you can changed the Red, Blue, or Green from 0-255 on the multicolored LED. I need to create some interface that I can change all six properties and maybe display those results on the multicolored LED module.


HSL is just a different color model. Search for HSL to RGB formula.

It’s also sometime referred to as HSB for Hue, Saturation, Brightness.

No, there is a deifference between HSL and HSB

Thanks Weiti. So that leads me to my original question…is there a way to modify those values?

see http://www.codeproject.com/KB/recipes/colorspace1.aspx

No, but those values can be calculated.

Check this out:

Your answer is not the correct answer, but the second one from Greg.
It can be easily adapted to the MicroFramework.
You just have to write something that works like Math.Floor, thats the biggest obstacle to overcome.
And thats not very high :slight_smile:

If you have any questions just ask…

@ mrPositive
awesome link!

Thanks very much guys. I will look into it and post the code if I incorporate it into my project.

I was personally expecting the MultiColour LED to have HSL methods built in. I think it would be a helpful addition.

@ yngndrw - the drivers are open source. feel free to add HSL methods.

Please see patch #11443 @ http://gadgeteer.codeplex.com/SourceControl/list/patches

Edit: New version, please see patch #11451 @ http://gadgeteer.codeplex.com/SourceControl/list/patches