The DAI has a very advanced graphics system designed to minimize memory usage. In total 16 colors are available, but in some modes only two bits were used per pixel. This was done by defining a foreground and background color per screen line.
As a quick alternative to explaining it all again, the relevant chapters of the Reference Manual are reproduced here:
Updated: 2002-07-14