Kyocera TASKalfa 3051ci Technical Reference Manual page 37

Prescribe commands
Hide thumbs Also See for TASKalfa 3051ci:
Table of Contents

Advertisement

Figure 2. 12. PIE Example
The PIE command uses the format
PIE radius, starting angle, size of slice, ...;
In the example above, the radius is 2 centimeters (since we set the unit to centimeters
with the UNIT command), and the starting angle is 0 degrees. Four pie slices are speci-
fied, with sizes of 10, 20, 30, and 40.
The printing system automatically converts the slice sizes to angles totalling 360
degrees. Then it draws the first slice with a cut at the angle specified by the second
parameter (0 degrees in our example, or straight up). The remaining slices are drawn in
sequence clockwise around the circle. The line thickness used for drawing the circle and
the lines between slices are designated by the SPD (Set Pen Diameter) command.
Any number of pie slice sizes can be specified, provided that the total length of the com-
mand does not exceed 255 characters, and that the sum of the pie slices does not exceed
9999. All numbers specified for slice sizes must be non-negative integers.
The PIE command does not fill in the slices with any fill pattern. The PAT command can
be used to create shaded areas. The previous example is expanded to fill in the slices.
!R! RES; UNIT C; SPD .1;
MZP 10, 10;
PAT 19; ARC 0, 2, 0, 36;
PAT 41; ARC 0, 2, 36, 108;
PAT 43; ARC 0, 2, 108, 216;
PAT 48; ARC 0, 2, 216, 360;
PIE 2, 0, 10, 20, 30, 40;
PAGE;
EXIT;
2-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents