SCANLINE color, startline [, endline]
This command can be used to set the color of individual horizontal scan lines on the VGA monitor when in MODE 1,7 (monochrome with white foreground). This applies to all video output displayed before and after the SCANLINE command.
‘color’ can be any color specified by name or number from 0 to 7.
‘startline’ and ‘endline’ specify the range of scan lines to set. If ‘endline’ is not specified only one line will be set. Multiple calls to SCANLINE can be used to set the color of other scan lines or to change the color of lines already set (ie, the settings accumulate).
This command is valid only when the color mode is set to MODE 1,7 (monochrome with the color set to white). All settings made by SCANLINE are automatically canceled whenever the MODE command is used or when MMBasic returns to the command prompt.
SCANLINE example as it would appear on your VGA display.
Example SCANLINE code:
FOR a = 1 TO 35
SCANLINE RED, 0, 105
SCANLINE YELLOW, 106, 200
SCANLINE BLUE, 201, 300
Note that a SAVEBMP action does not capture the colors.