-
Notifications
You must be signed in to change notification settings - Fork 60
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
Blending #3
Milestone
Comments
I don't know of any color spaces other than linear RGB that guarantee being able to trivially blend colors and get the correct result. |
Yeah, I think so too. This will most likely end up being an |
Merged
homu
added a commit
that referenced
this issue
Feb 23, 2016
Implement color blending This introduces the `Blend` trait, which implements proper color blending for colors where it makes sense. The introduction of this trait includes: * Implementation of OpenGL style blending, with blending equations and blending parameters. * Implementation of most of the [SVG composition operators](https://www.w3.org/TR/SVGCompositing/#containerElementCompositingOperators) (also common in photo manipulation software). * Introduction of a type for premultiplied alpha, which is useful for lengthy composition chains. * Introduction of the `ComponentWise` trait, with functions for repeatedly performing actions on each component of a color. It's restricted to colors where all of the components are of the same type. Closes #3.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There should be support for the common blending functions, like add, subtract, screen, overlay, etc. This may be restricted to RGB, unless it's intuitive in other spaces as well.
The text was updated successfully, but these errors were encountered: