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:
flood-colorsets the fill color.flood-opacitysets the fill opacity, with values from 0 to 1.
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.
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>
Copyright © verlag moderne industrie GmbH 2001
You may print the online version for your private use.
Otherwise, this chapter from “Das Einsteigerseminar SVG — Webgrafiken mit XML” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
verlag moderne industrie GmbH, Justus-von-Liebig-Straße 1, D-86899 Landsberg/Lech, fon ++49 (0) 81 91 / 125 – 0, leserservice(at)mi-verlag.de
back to top