A demo repository for my blog post about the wave function collapse algorithm.
This live demo page runs the code from this repository. You can upload your own images, or choose from predefined ones at the bottom of the page. There's also a built-in tile-based editor, that can be used to partially draw a picture, and generate the remaining image, or to edit an existing picture, and generate the erased parts:
Install npm
and execute the following command in the project root:
npx shadow-cljs release app
After that open index.html
in a browser.