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                                                                                                        

No comments:

Post a Comment