Oval objects are created using the following functions. Ovals are drawn by specifying the top-left corner point (x1, y1) and the bottom-right corner point (x2, y2) of the box that encloses them.
|Oval(x1, y1, x2, y2)||Creates an Oval with top-left corner at x1, y1, and bottom-right corner at x2, y2.|
|Oval(x1, y1, x2, y2, color, fill, thickness)||Creates an Oval with top-left corner at x1, y1, bottom-right corner at x2, y2, color (e.g. Color.BLACK (default), Color.ORANGE or Color(255, 0, 255), using specific RGB values), fill (boolean – default is False), and thickness (default is 1 (pixel)).|
Once a Oval has been created, it may be added to a Display specifying where to place its top-left corner point (x1, y1).
oval1 = Oval(50, 30, 100, 150)