Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The information described in Chapter 3 in Section 3.5.1 is also applicable to paths, which can not only have intersecting lines, but can also have "holes" in them. Consider the paths in Example 6-4, both of which draw nested squares. In the first path, both squares are drawn clockwise; in the second path, the outer square is drawn clockwise and the inner square is drawn counterclockwise.
<!-- both paths clockwise -->
<path d="M 0 0, 60 0, 60 60, 0 60 Z
M 15 15, 45 15, 45 45, 15 45Z"/>
<!-- outer path clockwise; inner path counterclockwise -->
<path d="M 0 0, 60 0, 60 60, 0 60 Z
M 15 15, 15 45, 45 45, 45 15Z"/> |