XML technologies / SVG / Filters, transformations and gradients / Summary, questions and exercises
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
Summary
The
transformattribute rotates and skews elements.Changes always refer to the object’s origin.
Colors can be defined with hexadecimal color specifications, by color names, or with the
rgbfunction.Gradients are defined with the tags
<radialGradient>and<linearGradient>.Filters are defined with the
<filter>tag.Multiple filters can be defined and combined inside this tag.
Apply a filter using the
filterproperty in thestyleattribute.
Questions and exercises
The following exercises form a single unit.
Create an SVG file and insert large text. Make it bold and give it a black border.
Add a white-to-red linear gradient and use it to fill the text.
Apply a filter to the element to create a 3D effect.
Add a black shadow to the text.
Apply a colored light cone to the text.
Place a rectangle behind the text and fill it with a fractal pattern.
Group both elements and skew the group on the x axis.
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