next-color

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i next-color

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

2.57 kB

Total Files

4

Last publish

Collaborators

  • bmordan