Homelite HL-1250, HL-P2500, HL-1660E, HL-2400CE, HL-1450, HL-1050, HL-1470N CP Character plot, Cp X,Y

Models: HL-1250 HL-1270N HL-1470N 2400C HL-1050 HL-P2500 2060 HL-1660E HL-1070 HL-1450 HL-2400CE

1 431
Download 431 pages 8 Kb
Page 335
Image 335

10/10/03

DR - Relative direction

DR [ run, rise ] [;]

run : X direction component

rise : Y direction component

A percentage of the distance in the X and Y directions between P1 and P2 is used as the units

Specifies the character plot direction.

Values for the run and rise are clamped real numbers.

The instruction is ignored when values for both run and rise are 0.

When the parameter field is omitted, the default value (horizontal direction) is used.

(0,

100)

(100,

100

 

 

(0,60)

rise = 60%

θ

run=70%

(70,0) (0, 100)

CP - Character plot

CP X,Y [;]

X ; the number of text spaces the pen position is moved.

Y ; the number of text lines the pen position is moved.

Moves the cursor the specified number of characters.

Values for X and Y are clamped real numbers.

When the parameter field is omitted, the cursor is not moved along the X-axis but it is moved 1 character in the negative direction along the Y-axis (identical to executing CP 0, -1;).

X increment

Current position

Y incremen

10 '*** CPEX ***

20 LPRINT "DF;SP1;PA1000,3000;PDPR3000,0;PU;PR-3000,0;"

30 LPRINT "CP5,.55;LBABOVE THE LINE";CHR$(3);"PA2000,3000;"

40LPRINT "XT;CP0,-1.15;LBBELOW THE LINE";CHR$(13);CHR$(10);"AND WITH A NEAT";CHR$(3)

50LPRINT "CP;LBMARGIN";CHR$(3)

60END

<Sample 85>

SI - Set absolute character size

SI [ width, height ] [;]

width : the width in centimeters of printed characters

height : the height in centimeters of printed characters

Specifies the size of characters to be plotted.

Values for width and height are clamped real numbers.

When the parameter field is omitted, the default values are used (width: 0.1879 cm, height: 0.2690 cm).

CHAPTER 9 HP-GL - 23

Page 335
Image 335
Homelite HL-1250, HL-P2500, HL-1660E, HL-2400CE, HL-1450, HL-1050, HL-1470N, HL-1070, 2060, HL-1270N CP Character plot, Cp X,Y