sharkdp / pastel

A command-line tool to generate, analyze, convert and manipulate colors
Apache License 2.0
5.08k stars 102 forks source link

Can this Generate a Sequence of Color Shade strings? #161

Closed ZionGates closed 2 years ago

ZionGates commented 2 years ago

Greeting. Lets say I have a base color and I need a list of 10 color shades (dark to light) Can this tool generate a side by side string of darker to lighter colors for the specified color. I want output like the text immediately below. Like #ff6f00,#ff8f00,#ffa000,#ffb300,#ffc107,#ffca28,#ffd54f,#ffe082,#ffecb3,#fff8e1

In other words I want to generate a color sequence (where I set the steps like 10,12, 8 etc. image

image

sharkdp commented 2 years ago

Yes, this should be possible with pastel gradient. Let me know if this works for you.

image

ZionGates commented 2 years ago

Worked perfect! Thanks. Please introduce support for Alpha Transparency as well (#FF000000) for the gradient function at least.

sharkdp commented 2 years ago

please see https://github.com/sharkdp/pastel/issues/131