SVG <feComposite> Filter

You are Here:

What is <feComposite> Filter?

The <feComposite> SVG filter primitive performs the combination of two input images pixel-wise in image space using one of the Porter-Duff compositing operations: over, in, atop, out, xor, and lighter.


HTML Online Editor
<!DOCTYPE html> <html lang="en-US"> <body> <svg height="100" width="200"> <filter id="point" y="0" x="0" width="100%" height="100%"> <feTurbulence baseFrequency=".05" numOctaves="3" result="B"/> <feComposite in2="B" in="SourceGraphic" operator="in" /> </filter> <rect width="200" height="100" style="fill:green" filter="url(#point)"/> </svg> </body> </html>

Attributes Value

inSpecifies the input for the given filter primitive.
in2Specifies the second input for the given filter primitive.
operatorSpecifies the compositing operation that is to be performed.


Hi Developers, we almost covered 91% of SVG Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in SVG.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author