home *** CD-ROM | disk | FTP | other *** search
QuickBASIC Tokenized Source | 1989-12-04 | 1.4 KB | 21 lines |
- ColorVal
- PaletteVal
- BackGroundVal
- Pause
- Draw three boxes and paint the interior of each
- box with a different color:
- Press ESC to end."
- Press any other key to continue.
- Restrict additional printed output to the twenty-third line:
- PaletteVal is either one or zero:
- Set the background color and choose the palette:-
- Background =
- Palette ="
- Wait for a keystroke.
- Exit the loop if both palettes have been shown,
- or if the user pressed the ESC key:
- Exit this loop if all sixteen background colors have been
- shown, or if the user pressed the ESC key:o
- Restore text mode and
- eighty-column screen width.
-