EasyManua.ls Logo

Commodore 128D - Page 269

Commodore 128D
427 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DRAW
—Draw
dots,
lines
and
shapes
at
specified
positions
on
screen
DRAW
[color
source],
[X1,
Y1][TO
X2,
Y2]...
This
statement
draws
individual
dots,
lines,
and
shapes.
Here
are
the
parameter
values:
where:
Color
source
X1,Y1
X2,Y2
0
color
background
1
color
foreground
2
Multicolor
1
3
Multicolor
2
Starting
coordinate
(scaled)
Ending
coordinate
(scaled)
The
X
and
Y
values
can
place
the
pixel
cursor
at
absolute
coordi
nates
such
as
(100,100)
or
at
coordinates
relative
to
the
previous
position
(+
/
-
x
and
+
/
-
y)
of
the
pixelcursor
such
as
(+
20,
-10).
The
coordinate
of
one
axis
(x
or
y)
can be
relative
and
the
other
can
be
absolute.
Here
are
the
possible
combinations
of.
ways
to
specify
the
x
and
y
coordinates:
x,y
±x,y
x,±y
±x,±y
absolute
x,
absolute
y
relative
x,
absolute
y
absolute
x,
relative
y
relative
x,
relative
y
Also
see
the
LOCATE
command
for
information
on
the
pixel
cursor.
The
graphics
commands
DRAW,
BOX,
CIRCLE,
PAINT,
LOCATE
AND
GSHAPE
have
an
additional
notation
which
allows
you
to
specify
a
distance
and
an
angle
relative
to
the
previous
coordinates
of
the
pixel
cursor
(PC).
The
notation
is
as
follows:
KEYWORD
where:
KEYWORD
SOURCE
DISTANCE
ANGLE
source,
distance;
angle
is
a
graphics
command
such
as.
DRAW,
CIRCLE,
PAINT,
LOCATE,
BOX
or
GSHAPE
is
the
same
code
as
in
all
of
the
graphics
commands
is
the
number
of
pixels
to
move
the
pixel
cursor
is
the
number
of
degrees
to
move
relative
to
the previous
pixel
cursor
coordinate
261
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals