Drawing Ellipses and Arcs
Prev | Chapter 14. The Drawing Area Widget | Next

## Drawing Ellipses and Arcs

The `draw_arc()` has a lot of parameters. The second one is again for the choice of filled or unfilled arc. The next two arguments are the x and y coordinates of the upper left corner of the circle. Imagine a rectangle surrounding the circle, and just touching it at the top, bottom, and sides. The upper left corner of this box is the point specified by the x and y coordinates. The width and height of this box are the next two arguments. A wide box will make a wide elliptical shape.

The final two arguments define the starting and ending angle, in case you do not want to make a complete circle. The angle is measured in 1/64th of a degree, starts at the right, and runs counter-clockwise.

Prev | Up | Next
Drawing Rectangles and Polygons | Home | Drawing Text