A standalone .NET 10 project for generating and playing colored nonogram puzzles from images.
- Blazor WebAssembly PWA puzzle player
- Shared
ColoredNonogram.Corelogic for Web and CLI - Browser image-to-puzzle generation with custom sizes up to 64x64
- CLI puzzle JSON generation from image files
- Deterministic small palette with up to 8 generated non-empty colors
- Puzzle JSON import/export
- Local browser progress saving
- xUnit v3 tests for Core and CLI behavior
- Docker/Nginx static hosting support
dotnet build ColoredNonogram.slnx
dotnet test ColoredNonogram.slnx
dotnet run --project src/ColoredNonogram.Webdotnet run --project src/ColoredNonogram.Cli -- generate --input image.png --output puzzle.json --width 30 --height 40Options include --max-colors, --resize-mode, --empty-threshold, --alpha-threshold, --stdout, and --force. The default empty threshold is conservative so pale subjects are not removed with the background.
The media/ folder contains sample files for the unicorn puzzle workflow:
-
media/unicorn.pngis the original source image used to generate the puzzle: -
media/unicorn.jsonis the generated puzzle JSON that can be imported in the Web player. -
media/screenshot.pngshows the first steps of solving the generated puzzle:
docker build -f deploy/Dockerfile -t colored-nonogram .
docker run --rm -p 8080:80 colored-nonogramThe Web app processes uploaded images locally in your browser. The default version does not upload images, puzzles, or progress to any server.

