FLASH

BASin

FLASH

Statement/Command

FLASH causes character positions to flash, making ink and paper colours alternate at a constant rate.

How to use FLASH

FLASH may be used as a direct command but it is normally used to form a statement in a program. It is followed by a numeric value, for example

50 FLASH 1

The value is rounded to the nearest integer if necessary and may then be either 0, 1 or 8. A value of 1 causes all characters subsequently displayed by PRINT or INPUT to flash. A value of 8 causes flashing character positions to remain flashing and normal character positions to remain normal when new characters are printed there. FLASH followed by 0 cancels both FLASH 1 and FLASH 8 so that all characters subsequently displayed are normal.

FLASH may be embedded (inserted) within statements formed by PRINT, INPUT, PLOT, DRAW and CIRCLE. FLASH follows the keyword, but precedes the data or display parameters; it is followed by the same values and a semicolon, for example

120 PRINT FLASH 1; INK 2; PAPER 6;"WARNING"

The effect of the FLASH is then local and applies only to the characters displayed, point plotted or line drawn by the display statement. Note that FLASH 1 causes the whole 8×8 pixel position to flash if any pixel is plotted in an ink colour.

Format

  • FLASH int-num-expr[;]

See also

Chapter 16.