andreyorst / wave-function-collapse

Wave function collapse algorithm implementation in ClojureScript (mirror)

Home Page:https://gitlab.com/andreyorst/wave-function-collapse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wave Function Collapse in ClojureScript

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:

demo

Build

Install npm and execute the following command in the project root:

npx shadow-cljs release app

After that open index.html in a browser.

About

Wave function collapse algorithm implementation in ClojureScript (mirror)

https://gitlab.com/andreyorst/wave-function-collapse

License:MIT License


Languages

Language:Clojure 75.1%Language:HTML 14.7%Language:CSS 10.2%