Spectra can be wrapped around many different types of objects to create a Spectra color that can be manipulated.
var color = ;color // 255
Simply download spectra.min.js and include it before your source files.
The bower package is at
bower install spectrajs
This module also works with Node. Simply run
npm install spectra and use
var Spectra = require('spectra') to set it up.
Refer to http://avp.github.io/spectra for reference on how to use Spectra.
There are Jasmine tests included in the
tests folder. Simply run
grunt test from the root of the repository to run the tests. This also checks JSHint. Alternatively, run
grunt to keep watch over source and test files, and automatically rerun the tests when the files change.
Test coverage information can be generated by running
grunt karma. Coverage information will be located in
test/coverage after generation.
To minify Spectra, run
View CONTRIBUTING.md for guidelines on how to contribute.