This method converts color values from hue-saturation-lightness (HSL) to it's red-green-blue representation.
Check out the demo!
Special thanks to tsaniel, Alex Kloss, subzey, Jed Schmidt, and maettig for there unbelievable magic and effort!
See the 140byt.es site for a showcase of entries (built itself using 140-byte entries!), and follow @140bytes on Twitter.
To learn about byte-saving hacks for your own code, or to contribute what you've learned, head to the wiki.
140byt.es is brought to you by Jed Schmidt, with help from Alex Kloss. It was inspired by work from Thomas Fuchs and Dustin Diaz.
@subzey, you are right. It works. % and * are left-to-right. Now it's 115 bytes without error checking, 135 bytes with error checking and 129 bytes with 0..360 and 0..100 ranges. Incredible. Yea, and thanks for the update, @aemkei. The only thing is, I miss my name in the readme.
@LeverOne, I'm sorry, I don't understand. I think you are pointing at some duplicate snippets in the code. I tried to assign this to a variable and reuse it but this did not saved a byte. Maybe you find a way to do this?