sharkdp / pastel

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

Mix working incorrectly, with some colours... #112

Closed johnalanwoods closed 4 years ago

johnalanwoods commented 4 years ago

I am using the command

pastel mix yellow blue on the latest build pastel 0.6.1, and I get the following:

As you can see, red and yellow make orange, but yellow and blue make purple? - should be green no?

Screenshot 2020-01-28 at 10 39 48 a m
sharkdp commented 4 years ago

That depends on the colorspace which is used to mix the colors. If you use the HSL space, the result is green:

pastel mix blue yellow -s HSL
johnalanwoods commented 4 years ago

@sharkdp - oh sorry! I don't understand why it's not green in RGB, but clearly not a bug!

Thanks! cool app By the way.