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.
Another 113 bytes version. Just used rotation of
b
array by 1:UPD: It seems that @LeverOne's 113 is faster: jsperf test. @LeverOne, how did you do it? :)