AT&T 6300 Programmer's Manual page 394

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

PAINT
Statement
Syntax
7-238
In high- and super-resolution mode, the screen
can be painted with 'x's by the following
statement:
PAINT [320, 100),CHR$[&H81) +
CHR$[&H42) + CHR$[&H24) + CHRS[&H18) +
CHR$[&H18) + CHR$[&H24) + CHR$(&H42) +
CHRS[&H81]
This pattern appears on the screen as:
x increases - >
0,0
11101010101010111 CHR$ (&H81) Tile byte
°
0,1
10111010101011101 CHR$ (&H42) Tile byte 1
0,2
10101110101110101 CHR$ (&H24) Tile byte 2
0,3
10101011111010101 CHR$ (&H18) Tile byte 3
0,4
1010101 1 1 1 1010101 CHR$ (&H18) Tile byte 4
0,5
10101110101110101 CHR$ (&H24) Tile byte 5
0,6
10111010101011101 CHR$ (&H42) Tile byte 6
0,7
11101010101010111 CHR$ (&H81) Tile byte 7
Since there are 2 bits per pixel in medium-
resolution mode (SCREEN 1), each byte of the
tile pattern only describes 4 pixels. In this
case, every 2 bits of the tile byte describes 1 of
the 4 possible colors associated with each of
the 4 pixels to be put down.
If
"background" color is omitted, the default
value is CHR$(O). When supplied,
"background" specifies the "background tile"
pattern or color byte to skip when checking for
border termination.

Advertisement

Table of Contents
loading

Table of Contents