Liero graphics (CHR) file formatBy Sander de Jonghttp://lieronet.cjb.net The CHR file format is very simple. It is raw data, meaning there is no sort of compression or whatsoever. The first 10 bytes of the CHR file is the header. The first 5 bytes of it is the word 'LIERO'. Byte 6-10 are the bytes 00 02 10 10 6E. Nobody knows what these values mean, but just keep them this way. After that, the real picture comes. This is devided in 3 parts: a part of 16 pixels wide and 1760 high, then a part of 7 pixels wide and 910 high and the third part is 4 pixels wide and 120 high. This data is stored right after each other, no breaks. So, in short: Header, 10 bytes Picture 1, 16x1760 pixels Picture 2, 7x910 pixels Picture 3, 4x120 pixels The values of the pixels are the same as in the Liero palette, color 0 is transparent. That's all! Now you know how the CHR file works. Hope I helped enough. |