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.
I wrote a test to compare the solutions. I'm not sure why, but @LeverOne's works. I need some time to dig down to this. I have the feeling there is an other byte we can save.
About your Rubik's Pocket Cube solver. Yes, it's impressive. Good work. Many new tricks to learn. Just a little problem. The main logic comes from the
turn
andspin
arrays. You can not tell this a "Rubik's Pocket Cube solver in 123 bytes" without counting the arrays. Same problem with all Base64 encoders at 140byt.es.