Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Create charming wobbling GIFs with ASCII (memalign.github.io)
3 points by memalign on Feb 14, 2022 | hide | past | favorite | 3 comments



Hi HN! This has been a fun side project to create a way to embed sprites in code as ASCII art. After defining a simple image encoding (PCEImage[0]), I ended up making this editor and adding a wobble animation effect (inspired by zep’s Wobblepaint[1]). Read more about the editor here[2].

If you create anything fun, you can share it as a link here (click Share Link and then copy the URL) or even submit a pull-request so I can include it as an example. Be careful clicking shared links here when you have a draft image - I try to save your work in progress in local storage but it’s currently too easy to accidentally overwrite it.

[0] https://memalign.github.io/p/pceimage.html

[1] https://www.lexaloffle.com/bbs/?tid=40058

[2] https://memalign.github.io/p/pceimage-editor.html


Cute output! Very nice.

embed sprites in code

How?


Thanks for trying this out!

In JavaScript, you can create a PCEImage object (source for that object is here[0]) with an image string and then use the drawInCanvas method.

For now, I haven’t written a PCEImage implementation in any other language though.

[0] https://memalign.github.io/m/pceimage/PCEImage.js




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: