EasyManua.ls Logo

Commodore 128D - Page 292

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...
intend
to
PAINT,
and
the
source
of
the
starting
pixel
coordinate
and
the
specified
color
source
must
be
different.
The
Commodore
128
will
only
PAINT
where
the
specified
source
in
the
PAINT
statement
is
different
than
the
source
of
the
x
and
y
pixel
coordinate.
It
cannot
PAINT
points
where
the
sources
are
the
same
in
the
PAINT
state
ment
and
the
pixel
coordinate.
The
x
and
y
values
can
place
the
pixel
cursor
at
absolute
coordi
nates
such
as
(100,100)
or
at
coordinates
relative
to
previous
posi
tion
(+
/
-
x
and
+
/
-
y)
of
the
pixel
cursor
such
as
(+
20,
-
10).
The
coordinate
of
one
axis
is
(x
or
y)
can
be
relative
and
the
other
can
be
absolute.
Here
are the
posible
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
EXAMPLE:
10
CIRCLE
1,160,100,65,50
Draws
an
outline
of
a
circle.
20
PAINT
1,160,100
Fills
in
the
circle
with
color
from
source
1
(VIC
foreground),
assuming
point
160,100
is
colored
in
the
background
color
(source
0).
G
U
U"
284
BASIC
7.0
ENCYCLOPEDIA-Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals