Closed bbkane closed 4 years ago
It'd be fun for me if pastel gradient would accept more than two colors and generate the gradient between them.
pastel gradient
For example, I can generate a gradient between white, green, and red with the following:
cat <(pastel gradient white green) <(pastel gradient green red | sed 1d)
I'd like to generate it with:
pastel gradient white green red
I'm using pastel for my shell prompt ( https://github.com/bbkane/dotfiles/tree/master/zsh#install-prompt ) and this would make it even more ~distracting~ interesting.
pastel
Not sure the best way to deal with weird -n options:
-n
pastel gradient -n 2 white green red # what does this do? Throw an error?
Thanks for pastel!
This is supported in the latest version: https://github.com/sharkdp/pastel/releases/tag/v0.7.0
Oh great, thank you!
Feature
It'd be fun for me if
pastel gradient
would accept more than two colors and generate the gradient between them.For example, I can generate a gradient between white, green, and red with the following:
I'd like to generate it with:
Use Case
I'm using
pastel
for my shell prompt ( https://github.com/bbkane/dotfiles/tree/master/zsh#install-prompt ) and this would make it even more ~distracting~ interesting.Potential Problems
Not sure the best way to deal with weird
-n
options:Thanks for pastel!