Dissolving Display Program

See all articles from The Plotter v9 n2
Author(s): Roy Wisti
Publication: The Plotter
Pub Details: The Plotter v9 n2 (Volume 9, Issue 2)
Date: February 1991
Pages: 5
  10 REM DISSOLVING DISPLAY
11 REM Programmer--Roy Wista
20 DIM b(704)
25 REM Fill b() with 1 to 704 sequentially
30 FOR f=1 TO 704: LET b(f)=f: NEXT f
35 REM Swap array elements chosen at random. The larger the loop, the less sequential the order of the array
40 FOR f=1 TO 500
50 LET r=RND*703+1: LET s=RND*703+1
60 LET c=b(r): LET d=b(s)
70 LET b(s)=c: LET b(r)=d
90 NEXT f: BEEP .05,1
94 REM place something in display file (a listing of graphics of your choosing)
95 LIST 91
99 REM Fill attribute file with WHITE ink $ WHITE paper following random order created in b(), "hiding" display
100 FOR f=1 TO 704
110 POKE 22528+b(f)-1,BIN 00111111: NEXT f
119 REM Do the same but with Black ink on WHITE paper, "revealing" display
120 FOR f=1 TO 704
130 POKE 22528+b(f)-1,BIN 00111000: NEXT f
140 GO TO 100

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.