Color icon indicating copy to clipboard operation
Color copied to clipboard

Add functions for blending and overlaying

Open AshleyYakeley opened this issue 4 years ago • 2 comments

I'm not sure if there's already an easy way to do this, but it would be nice to have some of the same functionality that colour has. Something like:

  • blend :: (...) => e -> Color cs e -> Color cs e -> Color cs e
  • over :: (...) => Color (Alpha cs) e -> Color cs e -> Color cs e
  • overAlpha :: (...) => Color (Alpha cs) e -> Color (Alpha cs) e -> Color (Alpha cs) e

As I understand it, in colour, blends are always done in linear space.

AshleyYakeley avatar Jun 06 '21 02:06 AshleyYakeley

Is this project still active?

AshleyYakeley avatar Jul 04 '23 22:07 AshleyYakeley

Project is alive. If someone will submit a PR I am not gonna let it sit. Right this moment in life I just don't have much time to work on it myself, unfortunately.

lehins avatar Jul 05 '23 08:07 lehins