The resulting shape will be clipped to fit within the boundaries of the current clipping region. The shape will be drawn in the current foreground color. Figure 5 illustrates how angles are specified. The applet in Figure 6 demonstrates these methods in action. The source code is available here .
Polygons are shapes formed from a sequence of line segments.
Each of the polygon graphics methods require, as parameters, the coordinates of the endpoints of the line segments that make up the polygon. The resulting shape will be clipped to fit within the boundaries of the current clipping region. The applet in Figure 7 demonstrates these methods in action. The source code is available here . Next month, I'll put all of these bits and pieces together and show you what I mean.