@evenifumiss/gradient-color-calculator
v1.1.0
Published
calculate gradient colors between two colors
Downloads
6
Readme
gradient-color-calculator
Enter the starting, ending colors and the total number of gradients needed, and you will get an array of gradient hexadecimal color code including the starting and ending colors.
Usage
getGradientColors({ startColor: "#000000", endColor: "#ffffff", amount: 10 })
// "#000000", "#1c1c1c", "#393939", "#555555", "#717171", "#8e8e8e", "#aaaaaa", "#c6c6c6", "#e3e3e3", "#ffffff"