FillType

public enum FillType : UInt32

FillType selects the rule used to fill Path. Path set to .winding fills if the sum of contour edges is not zero, where clockwise edges add one, and counterclockwise edges subtract one. Path set to .evenOdd fills if the number of contour edges is odd. Each FillType has an inverse variant that reverses the rule: .inverseWinding fills where the sum of contour edges is zero; .inverseEvenOdd fills where the number of contour edges is even.

  • Specifies fill as area is enclosed by a non-zero sum of contour directions

    Declaration

    Swift

    case winding = 0
  • Specifies fill as area enclosed by an odd number of contours.

    Declaration

    Swift

    case evenOdd = 1
  • Specifies fill as area is enclosed by a zero sum of contour directions.

    Declaration

    Swift

    case inverseWinding = 2
  • Specifies fill as area enclosed by an even number of contours.

    Declaration

    Swift

    case inverseEvenOdd = 3