GitHub - D-T-666/wave-function-collapse-p5: Wave function collapse implemented in p5.js

This is an implementation of the all mighty Wave Function Collapse Algorithm (overlapping model) in p5.js

A gif of the demo working

How to run:

  • if you have python:
    1. cd into the project directory
    2. run python -m http.server
  • if you're using vscode:
    1. install live preview
    2. when done, click go live button on the bottom of the vscode window

Cool reference:

  1. The original WFC implementation on github
  2. the explanation we followed on grudbugs
  3. Efficient Computation boristhebrave.com
  4. Parallel Wave Function Collapse - Jan Orlowski and Amy Lee
  5. WFC in processing.py - solub on processing.org

Contribute!

  • just fork the repo, and make pr's