Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functions for blending and overlaying #9

Open
AshleyYakeley opened this issue Jun 6, 2021 · 2 comments
Open

Add functions for blending and overlaying #9

AshleyYakeley opened this issue Jun 6, 2021 · 2 comments

Comments

@AshleyYakeley
Copy link
Contributor

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
Copy link
Contributor Author

Is this project still active?

@lehins
Copy link
Owner

lehins commented Jul 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants