PAGE

draw a PAGE of repeating characters

Classification:

Custom image primitive

Command Syntax:

PAGE <color> <width> <height> <x> <y> <fontname>

 

<character>

Limits:

<color> = available colors

 

<width> = width of page in pixels

 

<height> = height of page in lines

 

<x> = position of left edge of page in pixels

 

<y> = position of top edge of page in pixels

 

<fontname> = available fonts

 

<character> = code number of character

 

min = 0

 

max = 255

Query Syntax:

None

Description:

Fills a rectangular area (page or block) with a character that

 

repeats horizontally and vertically. The <color> parameter sets

 

the color used to draw the character. The <width> and <height>

 

parameters determine the size of the block to be filled. The <x>

 

and <y> parameters determine the top left corner of the block.

 

The <fontname> parameter selects which font is used to draw

 

the character. The <character> parameter selects a specific

 

character (by number). For full alphanumeric fonts, the character

 

number is the same as the character’s ASCII code number. The

 

spacing between the characters is fixed by the character block

 

size in the font and cannot be changed. Partial characters are

 

not drawn to completely fill the rectangular area. Rather, the

 

largest possible block of full characters is centered in the

 

rectangular area.

Other Required Cmds:

None

Example:

P A G E b l u e 4 0 3 0 1 0 1 0 o p i x 9 6 9 / / D r a w

/ / a s m a l l b l o c k o f b l u e E

/ / c h a r a c t e r s i n t h e u p p e r l e f t / / c o r n e r

6-155

Page 281
Image 281
Quantum Data 801GC, 801GF, 801GX manual Draw a page of repeating characters, 155