« SVG Attribute reference home
The in2
attribute identifies the second input for the given filter primitive. It works exactly like the in
attribute.
Usage context
Categories | None |
---|---|
Value | SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference> |
Animatable | Yes |
Normative document | SVG 1.1 (2nd Edition) : feBlend SVG 1.1 (2nd Edition) : feComposite SVG 1.1 (2nd Edition) : feDisplacementMap |
- SourceGraphic
-
This keyword represents the graphics elements that were the original input into the
<filter>
element. - SourceAlpha
-
This keyword represents the graphics elements that were the original input into the
<filter>
element.SourceAlpha
has all of the same rules asSourceGraphic
except that only the alpha channel is used. - BackgroundImage
-
This keyword represents an image snapshot of the SVG document under the filter region at the time that the
<filter>
element was invoked. - BackgroundAlpha
-
Same as
BackgroundImage
except only the alpha channel is used. - FillPaint
-
This keyword represents the value of the
fill
property on the target element for the filter effect. In many cases, theFillPaint
is opaque everywhere, but it might not be the case if a shape is paint with a gradient or pattern which itself includes transparent or semi-transparent parts. - StrokePaint
-
This keyword represents the value of the
stroke
property on the target element for the filter effect. In many cases, theStrokePaint
is opaque everywhere, but it might not be the case if a shape is paint with a gradient or pattern which itself includes transparent or semi-transparent parts.
Example
Elements
The following elements can use the in2
attribute