LineCap

public enum LineCap : UInt32

The shape to be used at the ends of lines.

  • butt: Line is squared off at path endpoint.
  • round: End of line becomes a semicircle whose center is at path endpoint.
  • projectingSquare: Line continues beyond endpoint, goes on half the endpoint stroke width.
  • Line is squared off at path endpoint.

    Figure

    Declaration

    Swift

    case butt
  • End of line becomes a semicircle whose center is at path endpoint.

    Figure

    Declaration

    Swift

    case round
  • Line continues beyond endpoint, goes on half the endpoint stroke width.

    Figure

    Declaration

    Swift

    case projectingSquare