Package Exports
- next-color
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (next-color) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Next-Color
const Color = require('next-color')
const color = new Color(.7)
color.next() // '#d2b601'
color.next() // '#fd601e'
color.next() // '#ee1869'
color.next() // '#ab01bf'
color.next() // '#5326f7'
color.next() // '#1175f7'
Usage
The argument you provide to new Color(freq: Number)
is the frequency of the sine wave that is rotating the red, green and blue color values. Adjust this frequency to a low value for colors to be quite close to each other. Higher frequencies produce greater contrast between colors.
color.next('hex') // '#1175f7'
color.next('rgb') // 'rgb(17, 117, 247)'