lucasb-eyer / go-colorful

A library for playing with colors in go (golang).
MIT License
1.14k stars 57 forks source link

Support colorspaces with alpha? #10

Open jpoz opened 7 years ago

jpoz commented 7 years ago

Wondering if you're planning on supporting colorspaces with alpha channels?

lucasb-eyer commented 7 years ago

There is no conversion involved in the alpha channel: Alpha value is a single additional channel that doesn't change as color space changes. That's why there is no alpha anywhere in go-colorful: it's not necessary.

What specifically are you missing or would you want to see?

jpoz commented 7 years ago

I'm trying to blend two colors with alpha values. Just wondering if you're going to add alpha compositing.

lucasb-eyer commented 7 years ago

Oh, I see. I guess you mean using the equations presented on wiki, right? It's not planned, but I would accept a non-invasive PR adding it.

tariq1890 commented 7 years ago

@lucasb-eyer This feature would be really appreciated.