colo
colo copied to clipboard
[proposal] DSL for advanced computations
Imagine you want to make the color #aacc66 more saturated. You could do
$ colo s aacc66 -o hsl
hsl(80, 50%, 60%)
$ colo s "hsl(80, 80%, 60%)"
#b4eb47
Then you finally have the more saturated color #b4eb47. However, colo could offer a DSL (domain specifc language) to do this in one command, e.g.
colo s "AACC66 as hsl +0.3l"
The alternative is to use pipes, like pastel:
$ pastel color aacc66 | pastel saturate 0.3