Closed DavidTimms closed 10 years ago
You need to add some tests to make sure this works, and I'll merge it in. I know it's small, but it's nice to test everything to make sure that there wasn't a typo that we missed.
OK, I've put a couple of tests in and changed the comment to block style to match the rest
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:
The rgba representation may be better, so you don't lose the alpha, but it is not supported in old browsers.