git.iko.soy/typeable/elm-ui
on master help sign in
add blend note
commit6b78e43f008d7c90aebd880e9492164ce512161b authorElm UI Automation <automation@elm-ui.com> dateFri 1 May 2020, 21:33 (7 years ago) parent47bb68d
1 file changed+10−2
notes/discussion/ColorWithoutAlpha.API.md+10−2
notes/discussion/ColorWithoutAlpha.API.md+10−2
@@ -41,11 +41,19 @@ Do you ever have a gradient with more than two alpha steps?
4141Maybe you'd actually like to adjust the falloff curve instead of have it be linear?
4242Maybe there's an even better way to represent this?
4343
44− -- Will eventually want to cover radial gradients, but a similar approach to the above is likely easy.
44+ Will eventually want to cover radial gradients, but a similar approach to the above is likely easy.
4545
4646Took a look at [background blend modes](https://developer.mozilla.org/en-US/docs/Web/CSS/background-blend-mode), which can be used to dynamically color images, like the [header image here](https://professional-rentals.com/).
4747
48−The blend modes are vaguely influenced by background opacity.
48+The blend modes are influenced by background or element opacity.
49+
50+In that way, we could have something like
51+
52+ Background.blend 0.5 color
53+
54+Which would set a color mode and set the background opacity. I'd need to play around with it, but seems kinda cool!
55+
56+
4957
5058
5159## Element.Border