Puzzle Canvas
- Create puzzle image from a image.(
encode/
) - Restore a image from puzzled image and imageMap.json.(
decode/
)
Installation
npm install
# -- #
npm run watch:decode
npm run watch:encode
npm run dist:lib
Usage
- Open encode/index.html
- Save puzzled image and imageMap.json
- Open decode/index.html
- Restore puzzled image to normal image.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT