Figure 20-5 Drawing arcs (3 of 3)

Drawing Bezier Curves

The Bezier Absolute (BZ) and Bezier Relative (BR) commands use your current pen position as the first control point in the Bezier curve. You specify the second, third, and fourth control points. If you are drawing more than one curve, the fourth control point of the first curve (X3, Y3) becomes the first control point of the next curve.

The following example shows a simple command sequence using BZ to draw a Bezier Curve in the shape of a sine wave (shown in the figure following the example).

Table 20-5 Example: Drawing Bezier Curves

ECE

Reset the printer.

EC%ØB

Enter HP-GL/2 mode.

IN;

Initialize HP-GL/2.

 

 

SP1;

Select pen number 1. The SP command

 

must be used to enable printing.

 

 

PA1000,5000;PD;

Specify absolute plotting and move to

 

position (1000,5000); pen down.

 

 

BZ2000,8000,

Draw a Bezier curve with (1000,5000) as

4000,2000,5000,5000;

the starting point (first control point).

 

Specify (2000,8000), (4000,2000), and

 

(5000,5000) as the second, third, and

 

fourth control points.

 

 

EC%ØA

Enter the PCL mode.

20-8The Vector Group

EN

Page 468
Image 468
HP 5961-0509 manual Example Drawing Bezier Curves, 20-8The Vector Group