Skip to content

Fill out sections of a grid to reveal pixel art. Inspired by "Pencil Puzzles" from Tips & Tricks Magazine.

Notifications You must be signed in to change notification settings

BrandonE/pixel-puzzles

Repository files navigation

Pixel Puzzles

Fill the grid in your browser or print the puzzle to complete by hand. Edit the puzzle or generate your own using any image. Share puzzles with your friends and family!

Classic

Copy each square's pattern to the associated coordinates to reveal a secret image!

Example classic puzzle with the GitHub Octocat

Classic puzzle generated from a headshot of Brandon Evans

Inspired by Pencil Puzzles from Tips & Tricks Magazine.

Nonogram

Solve the Nonogram to reveal a secret image! Nonogram Tutorial

Example nonogram puzzle with the GitHub Octocat

Functionality

Playing

When you first load the application, you will be presented with the sample puzzle shown above for the game selected. You can toggle pixels on and off using your mouse. In the Classic game, when a sub-grid has all of its pixels filled out properly, the sub-grid's border will light up. In the Nonogram game, you can right-click a pixel to cross it out and indicate that it should not be filled out. You can erase your progress and start over by refreshing the page or selecting Clear. You can also Reveal the solution.

Editing

Selecting Edit will reveal the solution to the puzzle you are currently solving. Afterwards, you can modify the puzzle by toggling pixels using your mouse just as you would when playing. Selecting Clear will empty the canvas, allowing you to create a puzzle from scratch.

You can resize the grid (both games) and the sub-grids (Classic game only). This will also empty the canvas.

You can also Import a puzzle from an image. Select an image from your device to generate the puzzle. Every pixel will either be filled or empty, so high contrast images work best. Before importing, you can crop the image. By default, the cropping will be square. Although unchecking Square Aspect Ratio (1:1) allows free-form crops, the resulting puzzle will always be square, so the remainder of the canvas will be empty.

If you would like, you can Export the current canvas as an image. Importing the image will result in the canvas being restored.

Clicking Invert will replace all filled pixels with empty pixels and vice-versa. This can be useful if an imported image was not colored as expected.

Whenever you are done editing your puzzle, you can click Play to solve it.

Printing and Sharing

While playing or editing a puzzle, you can click Print to generate a printable version of the puzzle or Share to copy a link for the puzzle to your clipboard.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About

Fill out sections of a grid to reveal pixel art. Inspired by "Pencil Puzzles" from Tips & Tricks Magazine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published