Download Print this page

Sanyo MLP-001 Operating Instructions Manual page 28

Light pen unit

Advertisement

CALL
LLINE
Call
light line
(EXPANDER
BASIC)
Function:
To draw
light lines.
Format:
CALL
LLINE
([Kstart
point
x>,
<start point
y>)
]
Klast
point
x>,
<last point
y»)
Example:
COLOR
15:
CALL
LLINE
(-(1 50, 50))
Explanation:
A
light
line
is
drawn between
Kstart
point
x>,
<start
point
y>) and
Klast
point
x>,
<last point
y>). This
nstruction
varies
from
LINE
statement
in
that
a
special
handling
is
carried
out
when
two
lines
intersect
The
specifying of
Kstart
point
x>,
<start point
yX
may
be omitted.
In
this case,
the
LP
(last
point)
is
sup-
posed
to
have been
specified.
Furthermore,
a
STEP
statement
may
be
also
used
to
specify the
start
and
last
points
for
a relative
coordinating.
The
line
color
is
a
foreground
one
specified
with
a
COLOR
statement.
Sample
program:
10
COLOR
15,
1
,
1
:
SCREEN
2
20
COLL
B L
I
HE
<
<
0
,
0
)
-(255,191
>
3
8
C 0 L
OR:
4
40
LINE
<
100,
0
1
(
180, 191
>
50
C
H L L
LLINEC
(
1
14,
0
:'-(
1
14,
191
)
6 0
8 0 T 0
6
0
-
26
-

Advertisement

loading