Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
<feDisplacementMap>

Uses the pixel values from a second input to spatially displace the first input image.

This element is defined within a <filter> element, and is combined with other filter primitives to define a filter applied on the input image.

Example usage:

<filter id="MyFilter">
<feTurbulence type="turbulence" baseFrequency="0.05" result="noise" />
<feDisplacementMap in="SourceGraphic" in2="noise" scale="20" />
</filter>

Source scale="20"

Attribute Default Description
scale 0 Displacement scale factor in user units; normalized channel values map to offsets from -scale/2 through +scale/2.
xChannelSelector A Channel (R, G, B, A) of in2 used for x displacement.
yChannelSelector A Channel (R, G, B, A) of in2 used for y displacement.

Inherits standard filter primitive attributes (in, in2, result, x, y, width, height) from donner::svg::SVGFilterPrimitiveStandardAttributes.