FillRule

enum FillRule : Enum<FillRule>

Used to select how paths are filled. For both fill rules, whether or not a point is included in the fill is determined by taking a ray from that point to infinity, and looking at intersections with the path. The ray can be in any direction as long as it doesn't pass through the end point of a segment, or have a tricky intersection such as intersecting tangent to the path. Note that filling is not actually implemented in this way. This is just a description of the rule that is applied.

The default fill rule is WINDING.

Entries

UNKNOWN
Link copied to clipboard
common
Unrecognized fill rule.
EVEN_ODD
Link copied to clipboard
common
Counts the total number of intersections without regard to the orientation of the contour.
WINDING
Link copied to clipboard
common
If the path crosses the ray from left-to-right, counts +1.

Properties

name
Link copied to clipboard
common
val name: String
ordinal
Link copied to clipboard
common
val ordinal: Int