The Incredible Shrinking Screen

Developer(s): William J. Pedersen
Date: 1986
Type: Program
Platform(s): TS 2068
Tags: Graphics

Copies whatever is on the screen, pixel by pixel, into the top left corner at half or quarter size. William J. Pedersen offered it as the first entry in a contest for the most outrageous program.

GO TO 2000 fills the screen with random squares and asks for the reduction: enter 2 or 4. GO TO 1000 reduces the picture already on the screen (RUN would clear it). When it stops, GO TO 1006 clears everything except the reduced copy. The half-size copy takes several minutes.

Published in LISTing December 1986 (The Incredible Shrinking Screen).

Image Gallery

Source Code

1000 INPUT "Reduction? ";s
1001 FOR k=175 TO 0 STEP -s
1002 FOR n=0 TO 255 STEP s
1003 LET w=NOT POINT (n,k)
1004 PLOT INVERSE w;n/s,(k-1)/s+88+(43 AND s=4)
1005 NEXT n: NEXT k: STOP
1006 LET n=176-176/s
1007 FOR n=n-1 TO n-16/s STEP -1: PLOT INVERSE 1;0,n: DRAW INVERSE 1;256/s-1,0: NEXT n
1008 FOR n=0 TO 24/s-1: PRINT AT n,32/s,: NEXT n
1009 FOR n=0 TO 21: PRINT AT n,16,: NEXT n
1010 FOR n=24/s TO 21: PRINT AT n,0,,: NEXT n: STOP
2000 CLS : FOR n=1 TO 300: PRINT AT INT (22*RND),INT (32*RND);"█";: NEXT n: GO TO 1000

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