Radio Shack TRS-80 Operation Manual page 40

Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

Computer Graphics
Operation Manual
- - - - - - - - - - T R S - a O
® - - - - - - - - - -
pixels in a given row are not altered and the tile that was
to be painted in that row matches the background tile,
painting will continue on to the next row.
Note: BASICG uses Free Memory for tiling.
Examples
l~
CIRCLE
(3~~,1~~),1~~
2~
PAINT
(3~~,1~~),1,1
Paints the circle in solid white.
l~
CIRCLE
(1~~,1~~),3~~
2~
PAINT
(l~~,l~~),l,l
Paints the circle.
Only the visible portion of the circle
is painted on the screen.
5 A=l
6 SCREEN
~
l~
CIRCLE
(32~,12~),1~~
2~
CIRCLE
(1~~,1~~),5~
3~
CIRCLE
(4~~,2~~),6~
4~
CIRCLE
(5~~,7~),5~
5~
PAINT
(32~,12~),A,1
6~
PAINT
(l~~,l~~),A,1
7~
PAINT
(4~~,2~~),A,1
8~
PAINT
(5~~,7~),A,1
The tiling style is assigned the value I in line 5 (A=l) for
all PAINT statements. Four circles are drawn and painted in
solid white.
l~
LINE
(14~,8~)-(5~~,2~~),1,B
2~
PAINT
(26~,12~),CHR$(&HEE)+CHR$(&H77)+CHR$(~~),1
Paints box in specified tiling style using strings.
l~
CIRCLE
(3~~,1~~),1~~
2~
PAINT
(3~~,1~~),"D",1
This example uses a character constant to paint the circle
in vertical black and white stripes. The character "D"
(~l~~
- - - - - - - - - l I a f i l e l l l a e l l - - - - - - - - -
-38-

Advertisement

Table of Contents
loading

Table of Contents