Hasty Briefsbeta

Bilingual

Show HN: How I generate animated pixel art with AI and Python

4 months ago
  • #Python
  • #AI
  • #Pixel Art
  • Overhauled site hero section with animated pixel art profile for a personal and retro feel.
  • Used AI-generated video processed with Python into an optimized sprite sheet for better control over frame rate, color palette, and rendering sharpness.
  • Workflow involved creation (ChatGPT, Photoshop, Midjourney), processing (Python script for frame extraction, color quantization, and jitter fixing), and rendering (HTML Canvas).
  • Challenges included getting consistent pixel art from AI, enforcing a strict color palette, and smoothing out temporal jitter.
  • Final output was a 5x5 sprite sheet, optimized to indexed color mode, weighing 46KB, rendering sharply on high-DPI screens at 10 FPS.