Default Palettes
 
Default color values for FreeBASIC graphics and text screen modes.

FreeBASIC initializes the palette indexes with the colors in the tables below. The colors are the same as in QB. Colors in graphics mode can be changed using the Palette statement. There is no portable way of changing the palette in console mode.

Screen mode 1
4 colors: Black and white, and two others
Screen modes 2, 10 and 11
Monochromatic: black and white.
Screen modes 7, 8, 9, 12, and Console
Two sets of 8 colors: normal and intense (bright)
Screen 13 and 8-bit modes
Multiple color and grayscale bands

Screen mode 1



ValueName
0black
1cyan
2magenta
3white


Screen modes 2, 10 and 11



ValueName
0black
1white


Screen modes 7, 8, 9, 12, and Console



Normal ValueNormal NameIntense ValueIntense Name
0black8dark grey
1blue9bright blue
2green10bright green
3cyan11bright cyan
4red12bright red
5pink13bright pink
6yellow14bright yellow
7grey15white

Screen 13 and 8-bit modes



Screen 12 color band

Colors 0 through 15 are the same as screen 12 mode.

Grayscale band
Colors 16 through 31 are grayscale from black to white.

Brightness/saturation bands
3 bands of decreasing brightness, each containing 3 bands of decreasing saturation, each containing 24 hues of color starting and ending at blue.

NameHB/HSHB/MSHB/LSMB/HSMB/MSMB/LSLB/HSLB/MSLB/LS
blue325680104128152176200224
magenta366084108132156180204228
red406488112136160184208232
yellow445892116140164188212236
green487296120144168192216240
cyan5276100124148172194220244


Black band
Colors 248 through 255 are black.