Sharp mz-3500 Manual For Use page 128

Business computer eos 3.0
Hide thumbs Also See for mz-3500:
Table of Contents

Advertisement

Section D:
0.6.11. LINE - Draw Line
Instruction:
LINE
x1,y1,x2,y2
The Graphics Interpreter
*******************************
*
Graphics Interpreter
*
*******************************
A
straight
line is drawn from the point at coordinates x1,
yl to
the
point at coordinates x2,
y2. The line mode can be defined by a previous
call of the "MASK" instruction.
0.6.12. TO - Continue Drawing Line
Instruction:
TO
x,y
A
straight line is drawn from current
~osition
of the (invisible)
gra-
phic cursor to the point at coordinates x,y.
By means of this function,
polygonials can be drawn, as the programming example shows.
0.6.13. RECT - Draw Rectangle
Instruction:
RECT
xl,yl,x2,y2
A
rectanlge is drawn,
the upper left corner of which is determined
by
the coordinates xl,yl, and the lower right by coordinates x2,y2.
D.6.14. FILL - Fill Rectangular Area
Instruction:
FILL xl,yl,x2,y2,image,colour
xl,y1
denote
the
upper left,
and x2,y2 the lower right corner
of
a
rectangular area.
This area is filled with a bit pattern. The parameter
"image"
denotes
a number between 0 and 126,
according
to
the
ASCII
alphabet. You may fill the area with one of the predefined fill patterns
0 to 12, with printable ASCII characters (whose values are in the
33 to
126 range), or with a pattern of your choice you have defined previously
by means of the "IMG" instruction,
The parameter "colour" specifies the
colour to be used with the fill pattern.
For example,
let us fill half of the screen with our company logo (D&Z)
in red:
FILL 0,0,200,399,10,2
EOS User's manual
Daeumling & Zimmermann
Page 113

Advertisement

Chapters

Table of Contents
loading

Table of Contents