Show HN: Pixel Art Generator Using Genetic Algorithm
13 ponta17 12 7/6/2025, 2:49:22 PM github.com ↗
This project is a simple but fun demonstration of a genetic algorithm applied to image generation. It starts with a population of random images and evolves them over generations to resemble a target image. The output is an animated GIF that shows the entire evolution process.
I think for most complicated pixel art, "reimagining" the image is necessary to keep it visually appealing and discernible at low-res, like in the examples here:
https://en.wikipedia.org/wiki/Pixel_art
Lowpass filtering with downsampling is definitely a more efficient way to simplify images compared to my approach. This project is an experimental demo of a genetic algorithm evolving random pixel patterns to approximate a target image.
I agree that true pixel art often requires artistic "reimagining" to stay visually appealing. Thanks for your feedback!