Table A-2. HP-GL/2 Commands

COMMAND

MNEMONIC

 

PARAMETERS*

 

 

 

PALETTE EXTENSIONS

Color Range

CR

[b_ref_red, w_ref_red, b_ref_grn, w_ref_grn, b_ref_blue, w_ref_blue];

Number of Pens

NP

[n];

Pen Color Assignment

PC

[pen [,red, green, blue]];

Transparency Mode

TR

0

- Off (opaque)

 

 

1

- On (transparent)

Screened Vectors

SV

[screen_type[,shading[,index]]]

 

 

 

 

 

 

VECTOR GROUP

Arc Absolute

AA

x_center,y_center,sweep_angle [,chord_angle];

Arc Relative

AR

x_increment,y_increment,sweep_angle [,chord_angle];

Absolute Arc Three Point

AT

x_inter,y_inter,x_end,y_end[,chord_angle];

Bezier Absolute

BZ

x1_control_pt, y1_control_pt

 

 

x2_control_pt, y2_control_pt

 

 

x3_control_pt, y3_control_pt ...

 

 

[x1_control_pt, y1_control_pt

 

 

x2_control_pt, y2_control_pt

 

 

x3_control_pt, y3_control_pt];

Bezier Relative

BR

x1_control_pt_increments,

 

 

y1_control_pt_increments,

 

 

x2_control_pt_increments,

 

 

y2_control_pt_increments,

 

 

x3_control_pt_increments,

 

 

y3_control_pt_increments ...

 

 

[x1_control_pt_increments,

 

 

y1_control_pt_increments,

 

 

x2_control_pt_increments,

 

 

y2_control_pt_increments,

 

 

x3_control_pt_increments,

 

 

y3_control_pt_increments];

Circle

CI

radius [,chord angle];

Plot Absolute

PA

[x,y ... [,x,y]];

Plot Relative

PR

[x,y ... [,x,y]];

Pen Down

PD

[x,y ... [,x,y]];

Pen Up

PU

[x,y ... [,x,y]];

Relative Arc Three Point

RT

x_incr_inter,y_incr_inter,x_incr_end,y_incr_end[,chord angle];

Polyline Encoded

PE

[flag[val]coord pair ... [flag[val]coord pair]];

 

 

 

* Parameters in brackets are optional.

Printer Commands A-19