EasyManua.ls Logo

Commodore 128D - Page 252

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...
paint
-
Paint
shape
with
color
0
=
Do
not
paint
-
-
1
=
Paint
LJ
(default
=
0)
This
statement
allows
the
user
to
draw
a
rectangle
of
any
size
on
the
P"
/
screen.
Rotation
is
based
on
the
center
of
the
rectangle.
The
pixel
s—'
cursor
(PC)
is
located
at
x2,
y2
after
the
BOX
statement
is
executed.
The
color
source
number
must
be
a
zero
(0)
or
one
(1)
if
in
high
reso-
\
i
lution
bit
map
mode,
or
in
the
range
of
0
to
3
if
in
multicolor
bit
map
^^
mode.
Also
see
the
GRAPHIC
command
for
selecting
the
appropri-
_
ate
graphic
mode
to
be
used
with
the
BOX
color
source
number. f
/
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
(x
or
y)
can
be
relative
and
the
other
can
be
absolute.
Here
are
the
possible
combinations
of
ways
to
specify
the
\~
"j
x
and
y
coordinates:
^—i
x,y
absolute
x,
absolute
y
^
±
x,y
relative
x,
absolute
y
,
{
x,±y
absolute
x,
relative
y
±
x,
±
y
relative
x,
relative
y
-
-
\
i
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
source,
distance;
angle
where:
"
~
KEYWORD
is
a
graphics
command
such
as
DRAW,
CIRCLE,
PAINT,
LOCATE,
BOX
or
GSHAPE
- -
)
y
SOURCE
is
the
same
code
as
in
all
of
the
graphics
'—j
commands
DISTANCE
is
the
number
of
pixels
to
move
the
pixel
cursor
|
j
ANGLE
is
the
number
of
degrees
to
move
relative
to
the
previous
pixel
cursor
coordinate
v
/
244
BASIC
7.0
ENCYCLOPEDIA—
Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals