SetColor
Function number: 02
Sets the current drawing, text, or background color.
Register entry values
AX = EE02
BX = Color type
01 = Drawing color
02 = Text color
03 = Background color
CX = Color
Register exit values
None
Example
MOV AX,0EE02H ;Set color function
MOV BX,1 ;Set drawing color
MOV CX,4 ;Set drawing color to RED
INT 10H ;Call GRAFIX
Comments
The drawing color is the color that will be used for all graphics functions that do not specify a color as one of the parameters. The text color is the color of the characters printed with the PrintString function. The background color is the color of the screen background and border.