~rabbits/uxn

png2tal release

Kira Oakley <kira@eight45.net>
Details
Message ID
<Z2yeW4YGgVWeWbFo@debian>
DKIM signature
pass
Download raw message
Hello y'all,

Today I released the first version of png2tal[1], a small command line
program that parses an input PNG file, and outputs uxntal source code
comprised of 8x8 blocks of sprite data to standard out.

Something convenient about it is that the PNG doesn't need to be
formatted in any particular way: if you used 2 colours (in 1bpp mode)
then those two colours will be treated as the 0 and 1 value per pixel,
respectively.

It accepts the -2 and -4 flags to indicate whether the output will be in
the 1bpp or 2bpp format.

Example usage might be

% png2tal -2 test_16x16x1.png > sprite.icn

and then include it with e.g. `~sprite.icn` in one's uxntal source.

Solstice warmth to you all,

 [1] https://codeberg.org/kira/png2tal
Reply to thread Export thread (mbox)