XML technologies / SVG / Creating simple SVG graphics / SVG tag syntax / The circle tag
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
The <circle> tag creates circles. Besides the universal attributes id and style, it has only three specific attributes: cx, cy and r.
Note:
cx abbreviates center x and cy abbreviates center y. They specify the circle center’s coordinates. r similarly abbreviates radius and specifies the radius.
The code <circle cx="100" cy="100" r="20"/> creates a circle centered at x=100, y=100 with radius 20 pixels and diameter 40 pixels. Its result could look as follows:
Figure: The circle in the browser.
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