Open main menu

Difference between revisions of "AGI/Specifications/Other"

Added comment about the colors being 18-bit rather than 24-bit in AGIPAL and the order in which the color components are saved in the AGIPAL file.
(Added link to information about the default VGA palette to AGI256-2's external links.)
(Added comment about the colors being 18-bit rather than 24-bit in AGIPAL and the order in which the color components are saved in the AGIPAL file.)
Line 500: Line 500:
There are always eight 24-byte chunks, so the file is always 192 bytes.
There are always eight 24-byte chunks, so the file is always 192 bytes.
<pre>
<pre>
Chunk0 Holds RGB palette data for the first 8 colors
Chunk0 Holds RGB palette data for the first 8 colors (R0, G0, B0, R1, G1, B1, R2, G2, B2, ...)
Chunk1 Same as Chunk0
Chunk1 Same as Chunk0
Chunk2 Holds RGB palette data for the second 8 colors
Chunk2 Holds RGB palette data for the second 8 colors (R8, G8, B8, R9, G9, B9, R10, G10, B10, ...)
Chunk3 Same as Chunk2
Chunk3 Same as Chunk2
Chunk4-Chunk7 Same as Chunk0-Chunk3
Chunk4-Chunk7 Same as Chunk0-Chunk3
</pre>
</pre>
Because VGA used 18-bit colors (i.e. 6 bits per color component) only the lowest 6 bits of each color component are actually used
(i.e. the topmost two bits of each color component byte are simply discarded).


==AGI256==
==AGI256==
417

edits