2 . 3 . 8 . 9 SET, RESET
These statements are used to turn dots on or off at a specified position on the screen.
Format
Function
Range of X, Y coordinates
SET X, Y < , C >
X . . . Numeric expression speci-
fying the X coordinate.
Y . . . Numeric expression speci-
fying the Y coordinate.
C . . . Color code (0 to 7).
Turns on the dots at
the screen coordinates
specified by X and Y.
(SET)
0
< X < 1 9
0 <
Y<49
RESET X, Y
X . . . Numeric expression speci-
fying the X coordinate.
Y . . . Numeric expression speci-
fying the Y coordinate.
Turns off the dots at
the screen coordinates
specified by X and Y.
(RESET)
0 < X < 1 9
0 < Y < 4 9
When a color code is specified, the color of the dots displayed by the SET statement is as follows.
(0)
Black
(1 )
Blue
(2)
Red
(3 )
Purple
(4)
Green
(5)
Light blue
(6)
Yellow
(7)
White
Since four dots are turned on simultaneously by the SET statement, changing the color of any one
dot in that four dot group also causes the color of the other dots to change.
The SET and RESET statements can be use to produce a wide variety of interesting effects; some
examples are introduced below.
1.
Turning on one dot on the
1 0
P R I N T " M "
2 0
X = 7 9 : Y = 4 9
3 0
S E T
X , Y , 2 <
4 0
R E S E T
X, Y <
5 0
G O T O
3 0
2.
Coloring the entire screen whi
1 0
P R I N T ' S '
2 0
F O R
X = 0
T O
3 0
F O R
Y = 0
T O
4 0
S E T
X , Y ,
7
5 0
N E X T
Y , X
6 0
G O T O
1 0
een.
C]
^Turns dots on.)
^Turns dots off.)
te.
7 9
4 9