EasyManuals Logo

Sharp MZ-800 User Manual

Sharp MZ-800
221 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #117 background imageLoading...
Page #117 background image
LINE
Format
Explanation
LINE
[<colour
specification>]
<X-coordinate>,
<Y-coordinate>,
<X-coordinate>,
<Y-coordinate>
[,<X-coordinate>,
<Y-coordinate>]
...
<colour
specification>
=
[<palette
code>][,<mode>]
The
LINE
statement
draws
line(s)
connecting
given
points
in
the
specified
colour.
<X-coordinate>
and
<Y-coordinate>
are
numerical
expressions
(i.e.,
numeric
constants,
variables,
or
expressions).
Their
range
of
values
is
the
same
as
that
for
the
SET
statement.
The
<colour
specification>
parameter
is
identical
to
that
of
the
SET
statement.
If
this
parameter
is
omitted,
the
colour
specification
made
in
the
COLOR
statement
is
assumed.
If
coordinates
outside
the
display
area
are
speci-
fied,
the
line
is
clipped
off
at
the
boundary
of
the
display
area,
10
LINE
[2,0]10,20,260,180,380,60
20
END
The
above
program
draws
lines
that
connect
from
points
(10,20),
(260,180),
to
(380,
60)
in
the
colour
previously
specified
from
palette
code
2
in
superimpose
mode
0.
10
INIT’;CRT:M1"
20
FOR
X1=0
TO
319
STEP
3
30
LINE
159,99,X1,0
40
NEXT
X1
50
FOR
Y1=0
TO
199
STEP
3
60
LINE
159,99,319,Y1
70
NEXT
Y1
80
FOR
X2=319
TO
O
STEP
-3
90
LINE
159,99,X2,199
100
NEXT
X2
110
FOR
Y2=199
TO
0
STEP
-3
120
LINE
159,99,0,¥2
130
NEXT
Y2
140
END
The
above
program
draws
dotted
lines
(every
three
dots)
from
the
center
of
the
screen
(159,99)
to
the
corners
of
the
screen.
BLINE,
SET
6-60

Other manuals for Sharp MZ-800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sharp MZ-800 and is the answer not in the manual?

Sharp MZ-800 Specifications

General IconGeneral
BrandSharp
ModelMZ-800
CategoryDesktop
LanguageEnglish

Related product manuals