aakpat6/spectra — pull request #11 by DavidTimms (2014-01-06 03:37:52+00:00)
Title: Use hex string for toString()

Just a quick addition to use hex string representation for a spectra object's toString() method. This allows for direct assignment to css properties, such as:

red = Spectra("#FF0000");
document.body.style.backgroundColor = red;

The rgba representation may be better, so you don't lose the alpha, but it is not supported in old browsers.