beautypg.com

Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 530

background image

C H A P T E R 1 3

Drawing and Graphics

13-4

About Drawing

Drawing also provides functions that allow you to perform a variety of mathematical
calculations on rectangles—changing their sizes, shifting them around, and so on.

An oval is a circular or elliptical shape defined by the bounding rectangle that
encloses it. If the bounding rectangle is a square (that is, has equal width and
height), the oval is a circle, as shown in Figure 13-3.

Figure 13-3

An oval

An arc is a portion of the circumference of an oval bounded by a pair of radii
joining at the oval’s center; a wedge includes part of the oval’s interior. Arcs and
wedges are defined by the bounding rectangle that encloses the oval, along with a
pair of angles marking the positions of the bounding radii, as shown in Figure 13-4.

Figure 13-4

An arc and a wedge

Oval

Bounding
rectangle

Bounding
rectangle

Bounding
rectangle

An arc

A wedge

Bounding
radius

Bounding
radius