Cycle Background Color#
This is where we start to get into differences between the C64 and X16 Commander. This example code works on the X16 Commander, but you may need to use
POKE 53281,BK if you are using an actual C64.
WARNING: Strobe effect. I take my time in the animation below, but if you hit enter quickly, your program will effectively be a stobing series of lights.
10 FOR BK=0 TO 15 20 COLOR BK 22 PRINT CHR$(1); : REM SWAP FG/BG 25 PRINT CHR$(147); : REM CLEAR SCREEN 30 PRINT "PRESS ENTER TO CONTINUE" 40 INPUT $A 60 NEXT BK