appendOval(in:)
Appends an oval path to the path, inscribing the oval in the specified rectangle.
Declaration
func appendOval(in rect: NSRect)Parameters
- rect:
The rectangle in which to inscribe the oval.
Discussion
Before adding the oval, this method moves the current point, which implicitly closes the current subpath. If the aRect parameter specifies a square, the inscribed path is a circle. The path is constructed by starting in the lower-right quadrant of the rectangle and adding arc segments counterclockwise to complete the oval.
See Also
Appending Common Shapes to a Path
append(_:)appendPoints(_:count:)appendArc(from:to:radius:)appendArc(withCenter:radius:startAngle:endAngle:)appendArc(withCenter:radius:startAngle:endAngle:clockwise:)appendRect(_:)appendRoundedRect(_:xRadius:yRadius:)append(withCGGlyph:in:)append(withCGGlyphs:count:in:)appendGlyph(_:in:)appendGlyphs(_:count:in:)appendPackedGlyphs(_:)