colors-generator

generate colors in same lightness and purity from a base color

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
colors-generator
0240.3.46 years ago6 years agoMinified + gzip package size for colors-generator in KB

Readme

colors-generator
generate colors in same lightness and purity from a base color

api

generate('#86bff2', 10).get() => ["#86bff2", "#8e86f2", "#cf86f2", "#f286d5", "#f28694", "#f2b986", "#eaf286", "#a9f286", "#86f2a3", "#86f2e4"]


generate('#86bff2', 10).lighter(0.1).get()


generate(color, num).darker(0.2).get()


generate(color, num).purer(0.1).get()


generate(color, num).impurer(0.1).get()


lightness and purity are both between 0, 1