I know how to change the colors of text and all but how do u know the color values like:
1 for red (Just as an example.]
THanks.
I know how to change the colors of text and all but how do u know the color values like:
1 for red (Just as an example.]
THanks.
Here are the 16 colors allowed in standard text modes in DOS.
0 - Black
1 - Blue
2 - Green
3 - Cyan
4 - Red
5 - Purple
6 - Brown
7 - Dull white
8 - Grey
9 - Light blue
10 - Light green
11 - Light cyan
12 - Orange
13 - Light purple
14 - Yellow
15 - Bright White
Notice that normal colors+8=brighter colors. Can use this to create shadows for text windows.
Black+8=Grey
Blue+8=Light blue
etc.
If you want to put values directly into text video RAM, I forget the formula for the colors. Something like ForeGround*16+BackGround......but not sure.