Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bencevans/fade-steps
Generate an array of steps between two colours
https://github.com/bencevans/fade-steps
Last synced: about 1 month ago
JSON representation
Generate an array of steps between two colours
- Host: GitHub
- URL: https://github.com/bencevans/fade-steps
- Owner: bencevans
- Created: 2014-08-19T13:04:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-28T01:06:35.000Z (almost 9 years ago)
- Last Synced: 2024-10-12T14:37:17.099Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fade-steps
> Generate an array of steps for fading between colours
## Install
$ npm install --save fade-steps
## Usage
```js
const fadeSteps = require('fade-steps')const startColour = '000000'
const endColour = 'ff00ff'
const stepCount = 5const colours = fadeSteps(startColour, endColour, stepCount)
console.log(colours)
/*
[ '000000', '400040', '800080', 'bf00bf', 'ff00ff' ]
*/
```## Licence
MIT © [Ben Evans](http://bensbit.co.uk)