From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/svg/element/fecomposite/index.html | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 files/zh-cn/web/svg/element/fecomposite/index.html (limited to 'files/zh-cn/web/svg/element/fecomposite/index.html') diff --git a/files/zh-cn/web/svg/element/fecomposite/index.html b/files/zh-cn/web/svg/element/fecomposite/index.html new file mode 100644 index 0000000000..1ff37ba996 --- /dev/null +++ b/files/zh-cn/web/svg/element/fecomposite/index.html @@ -0,0 +1,84 @@ +--- +title: feComposite +slug: Web/SVG/Element/feComposite +tags: + - SVG + - SVG滤镜 + - 元素 + - 需要兼容性表 + - 需要示例 +translation_of: Web/SVG/Element/feComposite +--- +
{{SVGRef}}
+ +

该滤镜执行两个输入图像的智能像素组合,在图像空间中使用以下Porter-Duff合成操作之一:over、in、atop、xor。另外,还可以应用一个智能组件arithmetic操作(结果被压到[0,1]范围内)。

+ +

arithmetic操作对组合来自{{SVGElement("feDiffuseLighting")}}滤镜和来自{{SVGElement("feSpecularLighting")}} 滤镜的输出以及组合纹理数据很有用。如果选择了arithmetic操作,每个结果像素都要经过下面的方程式的计算:

+ +
result = k1*i1*i2 + k2*i1 + k3*i2 + k4
+
+ +

在这里:

+ + + +

用法

+ +

{{svginfo}}

+ +

示例

+ +

属性

+ +

全局属性

+ + + +

专有属性

+ + + +

DOM 接口

+ +

该元素实现了SVGFECompositeElement接口。

+ +

参见

+ + -- cgit v1.2.3-54-g00ecf