in2 - SVG: Scalable Vector Graphics 编辑
The in2
attribute identifies the second input for the given filter primitive. It works exactly like the in
attribute.
Three elements use this attribute: <feBlend>
, <feComposite>
and <feDisplacementMap>
.
feBlend
For <feBlend>
, in2
defines the second input image to the blending operation.
Value | SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference> |
---|---|
Default value | SourceGraphic for first filter primitive, otherwise result of previous filter primitive |
Animatable | Yes |
feComposite
For <feComposite>
, in2
defines the second input image to the compositing operation.
Value | SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference> |
---|---|
Default value | SourceGraphic for first filter primitive, otherwise result of previous filter primitive |
Animatable | Yes |
feDisplacementMap
For <feDisplacementMap>
, in2
defines the second input image, which is used to displace the pixels in the image defined in the in
attribute.
Value | SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference> |
---|---|
Default value | SourceGraphic for first filter primitive, otherwise result of previous filter primitive |
Animatable | Yes |
Specifications
Specification | Status | Comment |
---|---|---|
Filter Effects Module Level 1 The definition of 'in2 for <feDisplacementMap>' in that specification. | Working Draft | No change |
Filter Effects Module Level 1 The definition of 'in2 for <feComposite>' in that specification. | Working Draft | No change |
Filter Effects Module Level 1 The definition of 'in2 for <feBlend>' in that specification. | Working Draft | No change |
Scalable Vector Graphics (SVG) 1.1 (Second Edition) The definition of 'in2 for <feDisplacementMap>' in that specification. | Recommendation | Initial definition for <feDisplacementMap> |
Scalable Vector Graphics (SVG) 1.1 (Second Edition) The definition of 'in2 for <feComposite>' in that specification. | Recommendation | Initial definition for <feComposite> |
Scalable Vector Graphics (SVG) 1.1 (Second Edition) The definition of 'in2 for <feBlend>' in that specification. | Recommendation | Initial definition for <feBlend> |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论