EasyManua.ls Logo

Commodore 128D - Page 257

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...
I
\
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
EXAMPLES:
CIRCLE1,160,100,65,10
CIRCLE1,160,100,95,50
CIRCLE1,
60,40,20,18,,,,45
CIRCLE1,
260,40,20,,,,,90
Draws
an
ellipse.
Draws
a
circle.
Draws
an
octagon.
Draws
a
diamond.
CIRCLE1,
60,140,20,18,,,,120
Draws
a
triangle.
CIRCLE
1,
+
2,
+
2,50,50
Draws
a
circle
(two
pixels
down
and
two
to
the
right)
relative
to
the
original
coordinates
of
the
pixel
cursor.
You
may
omit
a
parameter,
but
you
must
still
place
a
comma
in
the
appropriate
position.
Omitted
parameters
take
on
the
default
values.
CLOSE
—Close
logical
file
CLOSE
file
number
This
statement
closes
any
files
opened
by
the
DOPEN
or
OPEN
statements.
The
number
following
the
word
CLOSE
is
the
file
number
to
be
closed.
EXAMPLE:
CLOSE
2
Logical
file
2
is
closed.
249
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals