VGA Color Palettes

Top  Previous  Next

EXPL simulates all the standard VGA and VESA color palettes. The number of bits in VGA mode controls the number of colors. The simulated palette can be modified using the SetPalette intrinsic.

 

1. 1-Bit Modes. With one-bit color modes, there are only two colors: black and white.

 

 

Color

$00

Black

$01

White

 

 

2. 2-Bit Modes. In two-bit modes, you have a choice of four possible colors:

 

 

Color

$00

Black

$01

Cyan

$02

Magenta

$03

Gray

 

 

3. 4-Bit modes. In four-bit modes, you have a choice of 16 possible colors.

 

 

Colors

$00

Black

$01

Blue

$02

Green

$03

Cyan

$04

Red

$05

Magenta

$06

Brown

$07

White

$08

Gray

$09

Light Blue

$0A

Light Green

$0B

Light Cyan

$0C

Light Red

$0D

Light Magenta

$0E

Yellow

$0F

Bright White

 

 

4. 8-Bit Modes. In eight-bit modes, you have a choice of 256 colors taken from the standard VGA palette. You can also set your own palette using the SetPalette intrinsic.

 

VGAPalette

 

5. 15-Bit Modes. In these modes, a color is specified as an RGB value of 5 bits each. In other words, a 16-bit color contains 15 bits of color information.

 

6. 16-Bit Modes. In these modes, a color is specified as an RGB value of 5, 6 and 5 bits, with the green value getting the extra bit.

 

7. 24-Bit Modes. In these modes, the background color is always black and the foreground color is represented by RGB values of eight bits per color.