Ellipse

public class Ellipse: Shape

Ellipse is a concrete subclass of Shape that has a special initialzer that creates an ellipse whose shape is defined by the object’s frame.

  • Creates an ellipse.

    let r = Rect(0,0,100,200)
    let e = Ellipse(frame: r)
    

    Declaration

    Swift

    public override init(frame: Rect)

    Parameters

    frame

    The frame within which to draw an ellipse that touches each of the four sides of the frame.