Paths

The path element is similar to the polyline and polygon elements in the sense that it is used to draw continuous lines. Using the basic shapes you've read about thus far is really not much different than describing the objects in the path format, other than that their required information set is far simpler. In other words, drawing with basic shape elements is much easier than defining every simple shape as a series of coordinates and directional notations by using the path element. However, the path element allows you to draw anything the basic shapes allow, plus much more.

A path need not be comprised of straight lines, as polyline and polygon are forced to be. As curves are supported with the path element, more information than coordinates ...

Get Sams Teach Yourself SVG in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.