A jigsaw puzzle generator for HTMLCanvas
This library is still unstable.
generatePuzzle(image, rows, columns)
returns an array of rows
Xcolumns
puzzle pieces based off image
.
yarn install
jigsaw-canvas
root directorynpx live-server --host=localhost
localhost:<port>/multiplayer-demo/client
in the browser. <port>
is whatever the live-server
is running on, e.g 8080
cd multiplayer-demo/server
npx nodemon server.js
Open another browser with the same url and you should see real time sync when moving pieces.