colo icon indicating copy to clipboard operation
colo copied to clipboard

[proposal] DSL for advanced computations

Open Aloso opened this issue 5 years ago • 0 comments

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

Aloso avatar Oct 31 '20 06:10 Aloso