adjust note about color alpha

This commit is contained in:
Elm UI Automation 2020-05-03 10:52:58 -04:00
parent 639efbb5ab
commit 77e154e97c

View File

@ -6,8 +6,8 @@ If we separate out alpha from the core color type, we can
1. Have a unified `Color` type that works in all contexts, including in webGL situations where transparency may be handled differently, or not at all.
2. Encourage people to use actual color mixing functions where possible or to enumerate their colors concretely.
- The point here is that alpha mixing can sometimes lead to colors that don't look great or are unexpected.
2. Encourage people to use actual color mixing functions where possible and to enumerate their colors concretely.
- The point here is that color mixing is situation dependent. Why not just mix a color explicitly in a way where you know it looks good?
3. With a totally opaque color type, we can calculate contrast for accessibility evaluation easily. An alpha channel means we'd have to emulate browser mixing to do that, which I'm not sure is consistent.