SVG <feFlood> Filter
You are Here:
What is <feFlood> Filter?
The <feFlood>
SVG filter primitive fills the filter subregion with the color and opacity defined by flood-color
and flood-opacity
.
Example
HTML Online Editor
<!DOCTYPE html>
<html lang="en-US">
<body>
<svg xmlns="http://www.w3.org/2000/svg" width="110" height="110">
<defs>
<filter id="point" filterUnits="userSpaceOnUse">
<feFlood x="5" y="5" width="100" height="100"
flood-color="green" flood-opacity="0.5"/>
</filter>
</defs>
<use filter="url(#point)"/>
</svg>
</body>
</html>
Attributes Value
Attribute | Explanation |
---|---|
flood-color | Specifies what color to use to flood the current filter primitive subregion defined through the <feFlood> element. |
flood-opacity | Specifies the opacity value to use across the current filter primitive subregion defined through the <feFlood> element. |
Reminder
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.