git.iko.soy/typeable/elm-ui
on master help sign in
add blend note
6b78e43Elm UI Automation
notes/discussion/ColorWithoutAlpha.API.md+10−2
@@ -41,11 +41,19 @@ Do you ever have a gradient with more than two alpha steps?
41Maybe you'd actually like to adjust the falloff curve instead of have it be linear?
41Maybe you'd actually like to adjust the falloff curve instead of have it be linear?
42Maybe there's an even better way to represent this?
42Maybe there's an even better way to represent this?
43
43
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.
45
45
46Took 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/).
46Took 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/).
47
47
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+
49
57
50
58
51## Element.Border
59## Element.Border