XML technologies / SVG / Using complex graphic elements and formatting / Using paths correctly / Path syntax
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
You have already used some key aspects of path syntax, perhaps without realizing it. They can be summarized as follows:
Each command begins with its corresponding letter.
An uppercase letter takes absolute coordinates; a lowercase letter takes relative coordinates.
Path values representing coordinates, lengths or widths may be negative or positive. Prefix negative values with -.
Positive values may be prefixed with +, but this is optional. Numbers without a sign are interpreted as positive.
A space between a command letter and its first value is optional.
Command values can be separated by commas or spaces.
Fractional position or angle values must use a decimal point, not a comma.
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