mirror of
https://github.com/mdgriffith/elm-ui.git
synced 2024-08-17 12:10:24 +03:00
adjust note about color alpha
This commit is contained in:
parent
639efbb5ab
commit
77e154e97c
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user