4 comments
@neauoire kinda fascinating but inevitable that compression plays a part here. rle is so simple but so good. plaintext impl is good for transmission elsewhere, and looks like it is something to support inside the display device itself rather than just being expanded into vram? @maxc I was looking for a way to embed little graphics in the internal files that we make, I didn't want to use paths, and I didn't want to use values that would turn our files into a binary files to the eyes of git. The DCS and ST bytes to escape into sixels mode seems work pretty well for that. @neauoire wanting text diffs for this stuff makes a surprising amount of sense given the size, haha. i think paths can be a useful concept but i appreciate the single file benefits, and if you can have an area of the file where all the big blobs of stuff are put its kinda fine for arco we're up to some more than a thousand png files but the scope of media for uxn stuff is a lil less i think haha |
Implemented sixel RLE. A 128x128 1-bit image turns into 1.4kb of sixels.
https://git.sr.ht/~rabbits/uxn-utils/tree/main/item/gui/sixels/icnsix.tal
https://git.sr.ht/~rabbits/uxn-utils/tree/main/item/gui/sixels/sixels.tal