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

[compositing-2] Example 2 in section 3.4 for mix-blend-mode is misleading #549

Open
Overruler opened this issue Feb 9, 2024 · 0 comments

Comments

@Overruler
Copy link

Section 3.4 mix-blend-mode Example 2 uses screen blending mode with colors that give the impression of additive blending. However, the 3 colors "red", "lime" and "blue" are only a singular special case for which additive and screen blending produce the same result; this is not the case in general.

To avoid giving this false impression, rather than "red", "lime" and "blue", the three colors could be changed to "fuchsia", "green" and "green":

<svg style="background-color: black;">
  <style>circle { mix-blend-mode: screen; }</style>
  <circle cx="40" cy="40" r="40" fill="fuchsia"></circle>
  <circle cx="80" cy="40" r="40" fill="green"></circle>
  <circle cx="60" cy="80" r="40" fill="green"></circle>
</svg>

Under additive blending these colors would also sum to produce white, but under screen blending mode they don't:
Screenshot (58)

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

1 participant