Introduction
Koala Painter was the drawing program sold with the KoalaPad, a graphics tablet from Koala Technologies. Its Commodore 64 picture files became the standard way to store a C64 multicolour bitmap, and most C64 paint programs and converters still read and write them.
A picture is 160 × 200 wide pixels in up to 16 colours, with the C64’s limit of four
colours in each 4 × 8 cell. On the C64 disk the files have names starting with a
special character and PIC; copied to a PC they usually get the extension
.koa or .kla.
Structure
A Koala file is a copy of the memory the C64’s video chip reads, saved as a normal
program file. It is 10003 bytes long. The first two bytes are the load address,
usually $6000 (00 60, low byte first). Then come 8000 bytes
of bitmap, 1000 bytes of screen memory, which hold two of each cell’s colours, 1000
bytes of colour memory for the third, and one byte for the background colour shared by
the whole picture. The border colour is not stored. See
File layout and colours.
0Load address usually$60002 bytes2Bitmap two bits per pixel8000 bytes8002Screen memory colours 1 and 2 of each cell1000 bytes9002Colour memory colour 3 of each cell1000 bytes10002Background colour1 byte
Not described
The layout page follows the c64os.com article on a Koala viewer, RECOIL’s format list and FreeImage’s PluginKOALA.cpp.
Known, not yet covered
- Viewer: the viewer draws the picture, 320 × 200 with each pixel twice as wide as high, with the 16 colour values of the C64-Wiki Color page. Palettes differ (Pepto’s and Colodore’s shades, VICE’s own), and the file stores only the colour numbers, so the shades are not the ones the original machine showed. The border colour is not stored and is not drawn. The packed GG variant is not read: a file that is not 10,003 bytes (or 10,001 without the load address) is shown with the size reported as a problem.
Unknown
- Reference: the compressed variants (GG and run-length forms): RECOIL lists them but no layout was found.
- Reference: the
$81 PICfile-name prefix and any magic number: only a forum post mentions a signature, and the overview’s name claim is unconfirmed.
Links
Software
- Koala Painter – the original drawing program that made these files (Commodore 64)
- Multipaint – pixel-art editor for the screen modes of old computers, including C64 multicolour (Windows, macOS, Linux)
- RECOIL – viewer and converter for retro computer pictures, including Koala (Windows, macOS, Linux, web browser)
- VICE – Commodore emulator, to run the original program (Windows, macOS, Linux)
Reference
- Anatomy of a Koala Viewer – C64 OS’s walk through loading and showing a Koala file on the C64