
Nice colors
Spin is a library for accessing the color wheel with JS.
If you just want to use spin in the browser, you can require the bundled spin-color/bundle/spin.js file. If you want to use methods from the library in your own project, just require it as normal.
- Clone this repo
- Run
npm install && npm startto install dependencies and build the bundle file - Run
npm testto make sure all is good - Good to go!
returns SpinObject
Returns a SpinObject with the .color prop containing complementary RGBArray color.
returns SpinObject
Returns a SpinObject with the .color prop containing split-complementary RGBArray colors.
returns SpinObject
Returns a SpinObject with the .color prop containing split-complementary RGBArray colors.
returns number
Returns a Number between 0 and 100 representing the luminance percentage of the passed color.
returns RGBArray
returns RGBArray
Change the the color's Hue value. spinValue should be between -360 and 360.
returns: boolean
returns: boolean
returns: boolean
returns: RGBArray
returns: HSLArray
returns: RGBArray
returns SpinObject
Outputs a SpinObject