VGA

setBackgroundColor()

Description

Sets the background color

Syntax

VGA.setBackgroundColor(color)

Parameters

color - color of the background

RED = 0xE0
GREEN = 0x1C
BLUE = 0x03
YELLOW = (RED|GREEN)
PURPLE = (RED|BLUE)
CYAN = (GREEN|BLUE)
BLACK = 0x00;

Returns

none

Example

VGA.setBackgroundColor(0xE0); //set background color to red
VGA.setBackgroundColor(0x1c); //set background color to green
VGA.setBackgroundColor(0x03); //set background color to blue

See also

  

Share |