Documentation
    Preparing search index...

    Type Alias FillRule

    FillRule: "nonzero" | "even-odd"

    How a path's subpaths combine into a filled region (ยง51 "Fill rules").

    • nonzero: a point is inside when the signed number of times the path winds around it is not zero. Two nested rings drawn the same way therefore fill solid; the inner one only cuts a hole if it winds the other way.
    • even-odd: a point is inside when a ray from it crosses the path an odd number of times. Nesting alternates filled and empty regardless of winding.

    nonzero is the default, matching SVG and Canvas.