Screen Wipe+/Dissolving Display

Author(s): Roy Wisti
Publication: LISTing Newsletter
Date: October 1991
Pages: 9

Program one is called Screen Wipe+. Number two is called Dissolving Display. It “hides” and “reveals” any display at random screen locations by pokeing attribute file according to a random list of non repeating numbers (1-704) with white ink on white paper and then with black ink on white paper.

Thanks to Roy Wisti of Voluntown, CT for these routines.

Program One

10 LET a=0: LET b=0: LET x=255: LET y=175
11 OVER 1
20 PLOT a,b: DRAW x,0: DRAW 0,y: DRAW -x,0: DRAW 0,-y
30 LET a=a+1: LET b=b+1: LET x=x-2: LET y=y-2
31 IF b>175 THEN GO TO 10
40 GO TO 20

Program Two

10 REM DISSOLVING DISPLAY
11 REM Programmer: Roy Wisti
20 DIM b(704)
29 REM Fill b() with 1-704 sequentially
30 FOR f=1 TO 704: LET b(f)=f: NEXT f
39 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
91
94 REM Place something in display file (a listing or 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.