
Revision C 16/01/96
Chapter 8 "HP-GL2" 31
WG - Fill Wedge
WG
r,q1,qc(,qd)[;]
r ; Radius in current units
q1 ; Start point angle
qc ; Arc angle
qd ; Chord angle
•
Fill in a wedge centred on the current position with radius r, start point angle q1, arc angle qc, and chord
angle qd.
•
After plotting, the cursor returns to its point of origin.
•
Plotting is performed whether the pen is up or down.
•
You should use this command with the type "isotropic". Anisotropic type may make the wedge stretch.
•
r specifies the radius of circle. A positive value places the 0° reference point onto the positive x-axis and
the negative value places it onto the negative x-axis.
•
The value for q1 is a clamped real number.
•
q1 specifies the wedge starting point related to the 0° reference point.
•
When q1 is positive, the positive direction of the X axis relative to the current position is set at 0 degrees,
and the start point is sought in the counterclockwise direction. The opposite occurs when q1 is negative: the
negative X axis is set at 0 degrees, and the start point is sought by going clockwise.
•
qc specifies the angle of the wedge.
•
The value for qc is a clamped real number.
•
Plotting proceeds counterclockwise when qc is positive, and clockwise when negative.
•
The value for qd is a clamped real number.
•
When qd is not specified, the chord angle is the default value ( 5 degrees ).
10 ' - Fill Wedge -
20 WIDTH "LPT1:", 255
30 LPRINT CHR$(27); "E";
40 LPRINT CHR$(27); "%0B";
50 LPRINT "IN;SP2;FT3,100;"
60 LPRINT "PA2000,5000;"
70 LPRINT "WG1250,90,180,5;"
80 LPRINT "SP3;EW1250,90,180,5;"
90 LPRINT "SP4;FT4,100,45;"
100 LPRINT "WG1250,270,120;"
110 LPRINT "SP3;EW1250,270,120;"
120 LPRINT "SP1;FT1;"
130 LPRINT "WG1250,30,60;"
140 LPRINT "SP3;EW1250,30,60;"
150 LPRINT CHR$(27); "%0A";
160 LPRINT CHR$(27); "E";
170 END
<Sample 36>
Summary of Contents for HL- SERIES
Page 13: ...Revision A 16 01 96 Chapter 1 Introduction ...
Page 16: ...Revision C 16 01 96 Chapter 2 PCL 1 Chapter 2 PCL ...
Page 123: ...Revision C 16 01 96 Chapter 2 PCL 3 W width raster area 78 Y y offset raster 79 ...
Page 124: ...Revision C 16 01 96 Chapter 3 PJL 1 Chapter 3 PJL Printer Job Language ...
Page 180: ...Revision C 16 01 96 Chapter 4 Diablo 630 1 Chapter 4 Diablo 630 ...
Page 200: ...Revision C 16 01 96 Chapter 5 EPSON FX 850 1 Chapter 5 EPSON FX 850 ...
Page 237: ...Revision C 16 01 96 Chapter 6 IBM Proprinter XL 1 Chapter 6 IBM Proprinter XL ...
Page 259: ...Revision C 16 01 96 Chapter 7 Bar Codes Control 1 Chapter 7 Bar Code Control ...
Page 267: ...Revision C 16 01 96 Chapter 8 HP GL2 1 CHAPTER 8 HP GL 2 Graphics Language ...
Page 280: ...Revision C 16 01 96 Chapter 8 HP GL2 14 220 END Sample 21 ...
Page 328: ...Revision C 16 01 96 Chapter 9 HP GL 1 CHAPTER 9 HP GL Graphics Language ...
Page 342: ...Revision C 16 01 96 Chapter 9 HP GL 15 Sample 68 ...
Page 387: ...Revision C 16 01 96 APPENDIX A COMPALISON LIST 24 RESOLUTION 300 600 300 600 300 600 ...