Dark Bit Factory & Gravity

PROGRAMMING => Other languages => ASM => Topic started by: taj on February 13, 2007

Title: mode 13h default palette
Post by: taj on February 13, 2007
On a related topic can anyone point me to a page with the default colours listed or give me a formula to match them?

Title: Re: colours in mode 13h
Post by: Jim on February 13, 2007
I might be wrong, but I think the first 16 colours are all the primarys, secondarys and their half-brights.
So

black
red
green
blue
cyan
magenta
yellow
white

black
dark red
dark green
dark blue
dark cyan
dark magenta
dark yellow
grey

then the rest are just whatever is hanging around from anything that's been run before, like bios/windows boot up screens.

This palette is the one I used in my ASCII movie player :-)

Having said that, I've just read they're not necessarily standard across all VGA cards.

edit: This is much more useful
http://answers.google.com/answers/threadview?id=126097 (http://answers.google.com/answers/threadview?id=126097)

Jim