Main Site Documentation

Possible Hue, Saturation, and Luminesses


#1

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.

Thanks


#2

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


#3

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


#4

No, there is a deifference between HSL and HSB


#5

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


#6

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


#7

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…


#8

@ mrPositive
awesome link!


#9

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


#10

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


#11

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


#12

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