XML technologies / SVG / Using complex graphic elements and formatting / Summary, questions and exercises
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
Summary
Paths consist of individual path commands.
Each path command begins with a letter, followed by coordinates and other parameters as required by its syntax.
The command
Msets the starting point.The commands
L,HandVdraw lines.The
Acommand and the Bézier curve commandsC,Q,TandSdraw curves.Paths can be closed with the
zcommand.Lowercase commands take relative values; uppercase commands take absolute values.
Use the
styleattribute to format paths.
Questions and exercises
The following exercises form a single unit.
Create an SVG file and insert a triangle defined by a path.
Add an arc forming a semicircle.
Close the semicircle with a straight line.
Fill the semicircle red and set transparency to 50%.
Group the triangle and semicircle.
Rotate the semicircle by 15° within the group and the entire group by 30°.
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