2.0.0 • Published 4 years ago

next-color v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Next-Color

color samples

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)'