Global Function

ellipse()

Declaration

func ellipse(centerX: Double, centerY: Double, width: Double, height: Double)

Parameters

centerX x-coordinate of the center of the ellipse.
centerY y-coordinate of the center of the ellipse.
width Width of a rectangle that defines the size of the ellipse. If width and height are the same value, the ellipse will be a circle.
height Height of a rectangle that defines the size of the ellipse.

Returns

-

Description

Draws an ellipse in the view. An ellipse with equal width and height is a circle.

Examples

ellipse(centerX: 50, centerY: 80, width: 40, height: 40)

Related