【问题标题】:is there a way to calculate mix-blend-mode (css) for svg element with javascript?有没有办法用javascript计算svg元素的混合混合模式(css)?
【发布时间】:2016-06-15 10:36:30
【问题描述】:

我们有一个由 5 个形状组成的简单 svg。我们想用图层颜色“混合混合模式”这个 svg。但是,此 css 属性不适用于 Internet Explorer。有没有办法计算我们的 svg 的每种形状的结果?

svg:
element1: red
element 2: blue
element 3: pink
element 4: white
element 5 :black

没有透明度。

【问题讨论】:

  • 大概你可以做到what the spec says
  • 你可以使用 svg 过滤器来做同样的事情

标签: javascript html css svg mix-blend-mode


【解决方案1】:

是的,就像 cmets 中所说的那样。

https://drafts.fxtf.org/compositing-1/#mix-blend-mode

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-06-20
    • 1970-01-01
    • 2020-01-06
    • 2015-01-15
    • 2021-11-20
    • 1970-01-01
    • 2021-08-05
    • 1970-01-01
    相关资源
    最近更新 更多