1.0.5 • Published 4 years ago

gradient-creater v1.0.5

Weekly downloads
252
License
ISC
Repository
-
Last release
4 years ago

Gradient Creater

A tiny Javascript plugin to create specified amount of gradient colors between two colors provided

Installation

Use the Node Package Manager NPM to install Gradient Creater.

npm i gradient-creater

Usage

import { createGradient } from 'gradient-creater';

const startColor = '#ff0000'; /* Red */
const endColor = '#ffffff'; /* White */
const steps = 10; /* 10 colors should be created between red and white */

createGradient(startColor, endColor, steps) /* returns an array of colors */

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago