EasyManuals Logo

Sharp MZ-800 User Manual

Sharp MZ-800
221 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #120 background imageLoading...
Page #120 background image
PAINT
Format
Explanation
PAINT
[<palette
code>]
<X-coordinate>,
<Y-coordinate>,
<boundary
colour>
[,<boundary
colour>]
...
The
PAINT
statement
fills
in
an
area
on
the
screen
with
the
colour
specified
by
<palette
code>.
When
<palette
code>
is
omitted,
the
palette
specified
in
the
COLOR
statement
is
assumed.
You
can
select
the
<
boundary
colour>
from
16
colours.
The
range
of
values
that
<X-coordinate>
and
<Y-coordinate>
can
have
is
determined
by
the
INIT
statement.
Unless
the
area
is
completely
surrounded
by
the
specified
border
colour
(called
the
closed
loop
state),
painting
will
occur
beyond
that
area.
Painting
will
be
suppressed
if
the
specified
X-
and
Y-coordinates
lie
on
the
border
or
in
an
area
that
has
already
been
painted
with
the
specified
colour.
Figures
are
all
drawn
in
dots,
so
when
lines
and
curves
are
drawn
in
a
small
area,
small
closed
loops
may
result.
When
this
happens,
painting
will
not
occur
unless
coordinates
falling
inside
the
closed
loop
are
specified.
10
INIT’'CRT:M1""
20
CLS
30
CIRCLE[2]160,100,50
40
PAINT[1]160,100,2
50
END
The
above
program
paints
the
area
surrounded
by
a
border
using
palette
code
2
with
a
colour
specified
by
palette
code
1,
starting
at
point
(160,100).
6-63

Other manuals for Sharp MZ-800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sharp MZ-800 and is the answer not in the manual?

Sharp MZ-800 Specifications

General IconGeneral
BrandSharp
ModelMZ-800
CategoryDesktop
LanguageEnglish

Related product manuals