Skip to content

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

License

Notifications You must be signed in to change notification settings

onehanddev/gradient-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradient Creator

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 creator.

npm i gradient-creator

Live Demo

Head to see the plugin in action

Usage

import { createGradient } from 'gradient-creator';

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published