4 ms·
Good work! Highly recommend adding a gif of a few seconds of your game in your README so people can enjoy this without having to build and run it.
by anonytrary 7y ago
Good work! Highly recommend adding a gif of a few seconds of your game in your README so people can enjoy this without having to build and run it.
- slavik81 7y agoDo you have any recommendations on how to do that? I tried to make a gif for my project a month or two ago by capturing my terminal output in ttyrec, then using ttygif to turn it into an animated image. However, ttygif ultimately passes things off to ImageMagick convert, which would run until my computer ran out of memory and then crash. I tried using ffmpeg to create a video instead of a gif, but I struggled getting it to correctly reproduce my colours and I couldn't figure out how to handle the occasional variation in time between frames in my capture.
- pcmonk 7y agoFor terminal stuff, you can't beat the ease of use of asciinema.
- slavik81 7y agoThat's what I'm currently using, but I think a gif/video would work better for my program. My recording is supposed to run at ~10fps and the asciinema web player can't keep up. I get less than 1fps on the first play-through, and it dips as low as 2fps on subsequent plays.
- vpontis 7y agoLicecap / Zappy Or Loom -> MP4 -> ezgif There's a lack of good GIF making tools
- lufte 7y agoI use recordMyDesktop. If what I need is a gif, then I convert it with ffmpeg.
- slavik81 7y agoFollowing up on this, I was inspired to try again. I decided to give APNG tools a shot, as it seems that APNG support is pretty good these days[1]. It was straightforward to build apngasm[2] and ttygif[3] from their GitHub sources on Ubuntu. I modified ttygif to generate a command for apngasm rather than for convert, and found that it could easily handle my data. Unfortunately, apngasm does not seem to handle gamma correctly, resulting in more muted colours in the output APNG than in the input PNGs. If I can find the time, I'll fix that up and open-source the various tweaks I made. My current results are[4][5], though I may update those images as I improve them. On a related note, it seems that it's no longer possible to remove the window decorations from gnome-terminal on Ubuntu 19.10, which is unfortunate for ttygif captures. I switched to my Ubuntu 18.04 machine to do a capture without the window border. [1]: https://caniuse.com/#feat=apng https://caniuse.com/#feat=apng [2]: https://github.com/apngasm/apngasm https://github.com/apngasm/apngasm [3]: https://github.com/icholy/ttygif https://github.com/icholy/ttygif [4]: https://slerp.xyz/demos/ascii-euler/block.png https://slerp.xyz/demos/ascii-euler/block.png [5]: https://slerp.xyz/demos/ascii-euler/waterfall.png https://slerp.xyz/demos/ascii-euler/waterfall.png
- deleted 7y ago[deleted]
- slavik81 7y agoOne final update, I think part of the colour problem was actually because the Ubuntu terminal is slightly transparent by default, and different alpha blending resulted in slightly different colours.
- core_dumped 7y agoI went ahead and added one, thank you for the suggestion!