XML technologies / SVG / Using complex graphic elements and formatting / Using paths correctly / Overview of path commands

(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)

Many more path commands exist beyond those used so far. All will therefore be explained with examples below. SVG supports these path commands:

The Moveto command

The Moveto or M command jumps to a position within the path, changing position without starting a new path. Its syntax is simple:

M x y

Here, x/y specifies the destination.

The ClosePath command

The Z command closes a path. Like M, it can occur several times in one path. It closes to the position of the last M command before the Z command. It has no parameters, so simply write Z.

   

 

 

 

back to top