Show HN: Fixing Google Nano Banana Pixel Art with Rust
15 days ago
- #pixel-art
- #ai-tools
- #game-development
- Pixel Snapper is a tool designed to snap pixels to a perfect grid, fixing messy and inconsistent pixel art generated by AI.
- AI-generated pixel art often has inconsistent pixel sizes and positions, drifting grid resolution, and colors not tied to a strict palette.
- Pixel Snapper ensures pixels are snapped to a perfect grid, maintains consistent grid resolution, and ties colors to a strict, quantized palette.
- It is useful for AI-generated pixel art, procedural 2D art, and 2D game assets or 3D textures that need to be perfectly scalable.
- Pixel Snapper preserves details like dithering and requires Rust to be installed on the machine.
- Installation involves cloning the GitHub repository and running the tool with input and output PNG files, with an optional k-colors argument.
- A WASM module can be built for use in web projects.
- Pixel Snapper is part of Sprite Fusion, a free, web-based tilemap editor for game developers, and is licensed under MIT.