It looks like my 'pi1' saver for
Gimp can also write 'pi3' (and 'pi2') pictures.
Download the
Degas v2.04 plug-in from Markus Oberhumer if you don't have it yet,
and patch it with the attached file (the patch is as big as the original file).
Install it with "$ gimptool --install degas.c".
You'll have to restart Gimp.
It's not finished, but you should be able to save degas pictures with Gimp now.
I also have a question about 'PI3' files (I've never used them on Atari):
The loader from Markus makes the first index of the palette appear white on screen and the second black.
The problem is that when you're drawing a picture and convert it to a 2-colour palette, Gimp orders the indexes rather randomly.
When you reload your picture, the loader can show it with its colours reversed!
So I wonder if it's a rule for 'PI3' files that the first index is white, would an Atari display a 'PI3' file like the loader ?
And another question about colour conversion between [0..255] and [0..7]:
Markus's loader uses the following table, to make 7 look as bright as possible:
Code: Select all
0 -> 0
1 -> 36
2 -> 73
3 -> 109
4 -> 146
5 -> 182
6 -> 219
7 -> 255
roughly steps of 36 (255 / 7).
My saver uses steps of 32 (256 / 8) to write the Atari palette.
Code: Select all
0-31 -> 0
32-63 -> 1
64-95 -> 2
96-127 -> 3
128-159 -> 4
160-191 -> 5
192-223 -> 6
224-255 -> 7
I believe it's easier to draw a picture with my method, with steps of 32 in mind rather than with the values from Markus,
but steps of 32 would show a darker picture if used in the loader.
I believe it's safe to keep both, but maybe someone has a clever way to do the conversion ?
You do not have the required permissions to view the files attached to this post.