Brother HL-Series Technical Reference Manual page 297

Hide thumbs Also See for HL-Series:
Table of Contents

Advertisement

Revision C 16/01/96
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>
Chapter 8 "HP-GL2" 31

Advertisement

Table of Contents
loading

Table of Contents