May 04, 2012

Color statement and color codes

The color statement is used to change the color of the text or graphics.
COLOR <Color code>

where , 

Color-code = the number that sets the color.


The number that sets the color are as follows-

 Color                                 Color code

      1                                                              Dark blue
      2                                                              Dark green
      3                                                              Dark cyan
      4                                                              Dark red
     5                                                               Dark magenta
     6                                                                Magenta
     7                                                                White
     8                                                                Grey
     9                                                               Light blue
   10                                                               Light green
   11                                                               Light cyan 
   12                                                               Light red
   13                                                               Light magenta
   14                                                               Yellow 
   15                                                              Bright white                                                                                                        

Screen modes

You may have got the doubt of the statement 'SCREEN X' in my commands.Normally,  Q basic is in default the screen 0, which is text mode. The other screens from  1 to 13 are in increasing resolution as follows-


          Screen 0                      -                  80*25 -Text mode only
          Screen 1                      -                  320*200 -graphics
          Screen 2                      -                  640*200 -graphics
          Screen 7                      -                  320*200 -graphics
          Screen 8                      -                  640*200 -graphics
          Screen 9                      -                  640*350 -graphics
          Screen 10                    -                  640*350 -graphics
          Screen 12                    -                  640*480 -graphics
          Screen 13                    -                  320*200 -graphics 


Screen statement- 
                SCREEN < MODE >
   where, 
 MODE = the number that sets the screen mode