3 ms·
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
by memalign 5y ago
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 https://memalign.github.io/p/pceimage.html
[1] https://www.lexaloffle.com/bbs/?tid=40058 https://www.lexaloffle.com/bbs/?tid=40058
[2] https://memalign.github.io/p/pceimage-editor.html https://memalign.github.io/p/pceimage-editor.html
- WalterGR 5y agoCute output! Very nice. embed sprites in code How?
- memalign 5y agoThanks 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 https://memalign.github.io/m/pceimage/PCEImage.js