compound-path
compound-path()
Create a new path with each element used as sub-paths. This can be used to create paths with holes.
Unlike merge-path, this function groups the shapes as sub-paths instead of concatenating them into a single continuous path.
Anchors
- centroid
- Centroid of the closed and non self-intersecting shape. Only exists if
closeis true. Supports path anchors and shapes where all vertices share the same z-value.
compound-path({
rect((-1, -1), (1, 1))
circle((0, 0), radius: .5)
}, fill: blue, fill-rule: "even-odd")