HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II

21-6 The Polygon Group EN
Drawing Wedges
A wedge is a section of a circle. Wedges are commonly used to draw
pie charts. You can draw a wedge by outlining (edging) the defined
area using the Edge Wedge (EW) command, or you can create filled
wedges using the Fill Wedge (WG) command.
The wedge commands use your current pen location as the center
point; you specify the radius, the start angle, and the sweep angle.
The radius determines the length of the two sides of the wedge.
The sign (positive or negative) of the radius determines the location
of a ‘zero-degree’ reference point. The start angle is the number of
degrees from the zero reference point at which you want to draw the
first radius. The sweep angle is the number of degrees through which
you want to draw the arc. To draw or fill a circle, simply specify a
360-degree sweep angle. Figure 21-4 shows the different parameters
of a wedge with a positive radius.
Note A positive angle of rotation is in the direction of the +X-axis to the
+Y-axis as shown below. A negative angle of rotation is in the
direction of the +X-axis to the –Y-axis.
Figure 21-3
Note The relationship of the +X-axis to +Y-axis (and –Y-axis) can change
as a result of the scaling point or scaling factor changes, thus,
changing the direction of a positive (or negative) angle of rotation.