1.1.0 • Published 8 years ago

fade-steps v1.1.0

Weekly downloads
34
License
MIT
Repository
github
Last release
8 years ago

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

1.1.0

8 years ago

1.0.0

8 years ago