C H A P T E R 1 3
Drawing and Graphics
A rounded rectangle is a rectangle with rounded corners. The figure is defined by
the rectangle itself, along with the width and height of the ovals forming the
corners (called the diameters of curvature), as shown in Figure 13-5. The corner
width and corner height are limited to the width and height of the rectangle itself; if
they are larger, the rounded rectangle becomes an oval.
A rounded rectangle
A polygon is defined by a sequence of points representing the polygon's vertices,
connected by straight lines from one point to the next. You define a polygon by
specifying an array of x and y locations in which to draw lines and passing it as a
. Figure 13-6 shows an example of a polygon.