Path: blob/main/files/en-us/web/svg/element/feflood/index.md
6578 views
------{{SVGRef}}
The <feFlood> SVG filter primitive fills the filter subregion with the color and opacity defined by {{SVGAttr("flood-color")}} and {{SVGAttr("flood-opacity")}}.
Usage context
{{svginfo}}
Attributes
Global attributes
{{SVGAttr("class")}}
{{SVGAttr("style")}}
Specific attributes
{{SVGAttr("flood-color")}}
{{SVGAttr("flood-opacity")}}
DOM Interface
This element implements the {{domxref("SVGFEFloodElement")}} interface.
Example
HTML Content
Result
{{EmbedLiveSample("Example", 200, 200)}}
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{SVGElement("filter")}}
{{SVGElement("animate")}}
{{SVGElement("animateColor")}}
{{SVGElement("set")}}
{{SVGElement("feBlend")}}
{{SVGElement("feColorMatrix")}}
{{SVGElement("feComponentTransfer")}}
{{SVGElement("feComposite")}}
{{SVGElement("feConvolveMatrix")}}
{{SVGElement("feDiffuseLighting")}}
{{SVGElement("feDisplacementMap")}}
{{SVGElement("feGaussianBlur")}}
{{SVGElement("feImage")}}
{{SVGElement("feMerge")}}
{{SVGElement("feMorphology")}}
{{SVGElement("feOffset")}}
{{SVGElement("feSpecularLighting")}}
{{SVGElement("feTile")}}
{{SVGElement("feTurbulence")}}