Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

fade-steps

1.1.0 • Public • Published

fade-steps

Generate an array of steps for fading between colours

Install

$ npm install --save fade-steps

Usage

const fadeSteps = require('fade-steps')
 
const startColour = '000000'
const endColour = 'ff00ff'
const stepCount = 5
 
const colours = fadeSteps(startColour, endColour, stepCount)
 
console.log(colours)
/*
[ '000000', '400040', '800080', 'bf00bf', 'ff00ff' ]
*/

Licence

MIT © Ben Evans

install

npm i fade-steps

Downloadsweekly downloads

5

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability