Sharp mz-800 Owner's Manual page 120

Hide thumbs Also See for mz-800:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents