EasyManuals Logo

Sinclair QL User Manual

Sinclair QL
422 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 #159 background imageLoading...
Page #159 background image
LET
LINE
L1NE_R
graphics
LET
starts
a SuperBASIC assignment statement
The
use
of
the LET keyword
IS
optional.
The assignment may be used
for
both string and numeric assignments. SuperBASIC
will
automatically convert unsuitable data types
to
a
sUitable
form wherever possible.
syntax:
ILET] variable = expression
example:
i.
LET
a = 1 + 2
II.
LET
a$
=
"12345"
iii.
LET
a$
=
6789
iv.
b$
=
test
data
LINE allows a straight line
to
be
drawn between
two
points
In
the window attached
to
the default or specified channel.
The
ends
of
the line
are
specified using the graphics
coordinate
system.
Multiple lines can be drawn
with
a single LINE command.
The normal speCiticatlon requires specifying the two end points for a
line.
These end
points can be specified either
in
absolute coordinates (relative
to
the graphics ongin)
or
in
relative coordinates (relative
to
the graphics cursor).
If
the
first
point
is
omitted then
a line
IS
drawn from the graphics cursor
to
the speCified point
If
the second
pOint
IS
omitted then the graphics cursor
is
moved but no line
IS
drawn.
LINE
will
always
draw
with
absolute coordinates,
i.e.
relative
to
the graphics ongin, while
L1NE_R
will
always
draw relative
to
the graphics
cursor.
syntax:
x:
= numenc_expression
l'
= numeric_expression
point=
x,
y
parameter~2:
= I
TO
point 1
I ,point
TO
point 2
parameteU:
~
I
TO
point, angle 1
I
TO
point 2
I point 3
LINE [channel,] parametec
..
J *
[,
parameter:..2] *
L1NE_R
[channel,J
parameter......1
*
[,parameter:..2J
*
where 1
will
draw from the specified
pOint
to
the next specified point
2
will
draw from the the last
pOint
plotted
to
the specified point
3
will
move
to
the specified point
..
no line
will
be drawn
32
example:
i.
ii.
iii.
LINE
0,0
TO
0,
50
TO
50,0
TO
50,0
TO
0,0
la square)
LINE
TO
0,75,0.5
[a
line]
LINE
25,25
fmove the graphics cursor]
12/84

Other manuals for Sinclair QL

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair QL and is the answer not in the manual?

Sinclair QL Specifications

General IconGeneral
ProcessorMotorola 68008
Clock Speed7.5 MHz
RAM128 KB (expandable to 640 KB)
ROM48 KB
Operating SystemSinclair QDOS
Release Year1984
StorageMicrodrive tape loop
Graphics256x256 pixels, 8 colors
PortsRS-232, ROM cartridge
SoundBeeper (internal speaker)

Related product manuals