g.ellipse.fromRect(rect)

Returns a new ellipse object from the given rect.