g.Ellipse.fromRect(rect)

Return a new ellipse object from the given rect.