gradient-color-generator
v1.0.1
Published
Gradient color generator
Downloads
2
Maintainers
Keywords
Readme
Gradient color generator
This is a simple gradient color generator function which takes multiple color codes/name and returns a gradient color code.
Installation
Use the package manager npm/yarn to install the package.((please read the documentation first))
npm i gradient-color-generator
yarn add gradient-color-generator
Importing
import gradientGenerator from 'gradient-color-generator';
How to use it
const gradient = gradientGenerator(colorList,step,angle);
colorList: Array of color codes or names (hex,rgb,rgba,hsl,hsla) or color names *required
step: Number of steps
angle: Angle of gradient