Jump to content

New demo uploaded: C64 image file viewer (koala format)


desertfish
 Share

Recommended Posts

C64 image file viewer (koala format)

View File

I wrote a program that loads Commodore-64 multicolor pixel art images in the "koala" file format, and displays them to a regular Commander X16  320x200 graphics screen.

The C64 uses a fixed palette of 16 colors for all its graphics.

I do find that the saturation of the default colors in de c64 palette in the Cx16 emulator is not very good though: when the images are displayed on a C64 or in an emulator like Vice for instance, they look much better in my opinion.
So the program sets a custom palette (the "pepto" Vic-II colors) to make the images look closer like they would on a C64.

 

This program has been integrated in a multi-format image viewer now, the source code of that is here https://github.com/irmen/prog8/tree/master/examples/cx16/imageviewer


 

Edited by desertfish
  • Like 1
Link to comment
Share on other sites

Quote

I do find that the saturation of the colors in de c64 palette is not very good in the Cx16 emulator though: when the images are displayed on a C64 or in an emulator like Vice for instance, they look much better in my opinion.

I noticed that, too. In most colors seem to be too dark, a few too bright (Yellow if I recall correctly). Have you tried tweaking the palette for your viewer? 

Other than that: great tool!

Link to comment
Share on other sites

I'm going to take this a step further, and implement a sort of library to load various image formats.

So currently we have:

  • Koala paint C64 multicolor image (fixed size 160x200, 16 fixed colors)

I'm busy investigating:

  • BMP  (windows bitmap image files, various sizes, up to 256 colors, uncompressed),  have a Python prototype working
  • PCX (paintbrush image files, various sizes, up to 256 colors, very simple compression), have a Python prototype working
  • GIF (up to 256 colors, compressed) would be nice but perhaps the decompressor is too complex? I don't yet know how it works.
  • PNG (up to 256 colors, DEFLATE compressed)  requires zlib to decompress.   Have a Python prototype working.   6502 decompressor: see Andy's link below
  • IFF ILBM (Often used on the Amiga) Have a Python prototype working. No HAM support though
Edited by desertfish
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use