colors-generator
v0.3.4
Published
generate colors in same lightness and purity from a base color
Downloads
745
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]