HeadlinesBriefing favicon HeadlinesBriefing.com

Pixel-Art Mascot Emoji Coded in Python

Hacker News •
×

Developer afspies generated a growing library of animated Slack emoji featuring the Clawd mascot, entirely through Python scripts and mathematical definitions. Instead of image editors, the project analyzes the original logo's pixel grid to programmatically render variants like 'Clawdin Hood' and 'Mariachlawd.' The goal is pixel-perfect recreations, maintaining sharp edges at any zoom level.

The process begins by extracting the logo's pixel grid and defining its color palette within a Python script. Each animated emoji, such as 'This is Clawd' using a Doom-fire simulation or 'London Clawd' with layered rain effects, is then rendered from this single source of truth. Outputs are 128x128 PNG/GIF files, adhering to Slack's 128 KB file size limit.

Variants like 'Clawd Surfing' and 'Mariachlawd' render on a full 128x128 grid, allowing for larger, less pixelated characters and more detailed animations. These were constructed for seamless looping, with elements like wave motion and maraca shakes defined by trigonometric functions. The collection is available via a live gallery with click-to-copy Slack names or as a downloadable pack.