Color Demo Canon PJ-1080A (CANON.BAS)

Color Demo Canon PJ-1080A

Description

Color Demo Canon PJ-1080A

From the Antic disk of October 1986 (Vol. 5 No. 6).

The magazine article

From the Antic Software Archive at atarimagazines.com. The program remains the property of its author and publisher.

What is in this file

Atari BASIC program · 690 bytes

Dialect
Atari BASIC
Lines
18
Variables
S(, P1$, P2$, K, BYT1, BYT2, J, I
BASIC listing (18 lines)
10 REM COLOR DEMO CANON PJ-1080A
20 DIM S(3),P1$(240),P2$(240)
30 REM SET BITS: NONE,ODD,EVEN,ALL:
40 S(0)=0:S(1)=1+4+16+64:S(2)=2+8+32+128:S(3)=255
50 OPEN #2,8,0,"P:"
60 FOR K=1 TO 240 STEP 4
70 BYT1=S(INT(4*RND(0)))
80 BYT2=S(INT(4*RND(0)))
90 FOR J=0 TO 3:I=J+K
100 P1$(I)=CHR$(BYT1)
110 P2$(I)=CHR$(BYT2)
120 NEXT J
130 NEXT K
140 FOR K=1 TO 16
150 ? #2;CHR$(27);"X";CHR$(80);P1$;
160 ? #2;CHR$(27);"X";CHR$(80);P2$;
170 NEXT K
180 GOTO 60