XML technologies / SVG / Filters, transformations and gradients / Using and combining filters and lighting effectively / Filters and masks / The feFlood filter element

(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)

This element fills a rectangular area. Attributes specify the fill’s color and opacity. In addition to the universal attributes, the following attributes are allowed:

The filter always fills the area of the element to which it is applied. However, you can change the size by specifying the attributes x, y, width and height in the <filter> tag.

Fill created with feFlood

Figure: Fill created with feFlood.

Note:
This filter is only suitable for combination with other filters, since a simple rectangle could produce the same result.

<filter id="Fuellung1">
  <feFlood in="SourceGraphic" flood-color="orange" flood-opacity="0.2"/>
</filter>

   

 

 

 

back to top