EasyManua.ls Logo

Commodore 128D - Page 111

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
\
same,
since
you
must
finish
drawing
the
triangle
on
the
same
point
you
started.
This
form
of
draw
statement
gives
you
the
power
to
DRAW
almost
any
geometric
shape,
such
as
trapezoids,
parallelo
grams
and
polygons.
The
DRAW
statement
also
has
a
third
form.
You
can
DRAW
one
point
at
a
time
by
specifying
the
starting
X
and
Y
values
as
follows:
150
DRAW
1,150,175
This
statement
DRAWs
a
dot
below
the
CIRCLE.
As
you
can
see,
the
DRAW
statement
has
versatile
features
which
give
you
the
capability
to
create
shapes,
lines
points
and
a
virtually
unlimited
number
of
computer
drawings
on
your
screen.
PAINTing The
DRAW
statement
allows
you
to
outline
Outlined
areas
on
the
screen.
What
if
you
want
to
fill
Areas—The
areas
within
your
drawn
lines?
That's
where
the
PAINT
Command
PAI
NT
statement
comes
i
n.
The
PAI
NT
state
ment does
exactly
what
the
name
implies—it
fills
in.orJPAINTs,
outlined
areas
with
color.
Just
as a
painter
covers
a
canvas
with
paint,
the
PAINT
statement
covers
the
areas
of
the
screen
with
any
of
the
16
colors.
For
example,
type:
160
PAINT
1,150,97
Line
160
PAINTS
the
circle
you
have
drawn
in
line
60.
The
PAINT
statement
fills
a
defined
area
until
a
specified
boundary
is
detected
according
to
which
source
is
indicated.
When
the
Commodore
128
finishes
PAINTing,
it
leaves
the
pixel
cursor
at
the
point
where
PAINT
ing
began
(in
this
case,
at
point
150,97).
Here
are
two
more
PAINT
statements:
180
PAINT
1,50,25
200
PAINT
1,225,125
Line
180
PAINTS
the
triangle
and
line
200
PAINTS
the
empty
box.
IMPORTANT
PAINTING
TIP:
If
you
choose
a
starting
point
in
your
PAINT
statement
which
is
already
colored
from
the
same
source,
the
Commodore
128
will
not
PAINT
that
area.
You
must
choose
a
starting
point
which
is
entirely
inside
the
boundary
of
the
shape
you
want
to
PAINT
The
starting
point
cannot
be
on
103
USING
C128
MODE—Color,
Animation
and
Sprite
Graphics
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals