sethmlarson.dev

Archives
Subscribe
January 1, 2026

Cutting spritesheets like cookies with Python & Pillow 🍪

Happy new year! 🎉

For an upcoming project on the blog requiring many video-game sprites I've created a small tool (“sugarcookie”) using the always-lovely Python image-processing library Pillow. This tool takes a spritesheet and a list of mask colors, a minimum size, and then cuts the spritesheet into its component sprites.

Read more: https://sethmlarson.dev/cutting-spritesheets-like-cookies-with-python-and-pillow

Also, I was very tempted to publish my blogroll with the original title of "Drawing with zero-width characters" by Benjamin Swerdlow... it definitely crowds out the other recent entries 🤣

Blogroll featuring many other blogs, but a single blog title appears heavily corrupted, covering all the other parts of the screen with garbled demon-text.

Don't miss what's next. Subscribe to sethmlarson.dev:

Add a comment:

Share this email:
Share on Twitter Share on LinkedIn Share on Hacker News Share on Reddit Share via email
https://sethmla...
https://bsky.ap...
https://mastodo...
Powered by Buttondown, the easiest way to start and grow your newsletter.