XML technologies / SVG / Filters, transformations and gradients / Gradient and pattern settings / General information on gradients
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
If gradients do not look as expected, first check that their <stop> tags follow these rules, which determine the colors and transitions used.
The
offsetattribute’s value must be at least 0 and at most 100%. Values below 0 are rounded to 0%; values above 100% are rounded to 100%.Define at least two
<stop>tags to produce a gradient. With only one, its color fills the entire object. With none, the object is filled as if you specifiedfill:none.Each successive
offsetvalue must exceed the previous one. A value that is not at least as large as all preceding values is raised to the highest preceding value. If your list of<stop>tags contains equal values, the last-defined settings are used.
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