Skip to content
Wave function collapse python implementation
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
examples Add twinkle to samples Feb 24, 2019
samples Add twinkle to samples Feb 24, 2019
.gitignore Patterns from sample Nov 11, 2018
README.md Fix spacing readme Mar 17, 2019
cell.py Add 3D support (not yet display and loading) Dec 24, 2018
grid.py
main.py
pattern.py Cleanup and add midi sample Jan 5, 2019
propagator.py Add more comments Jan 3, 2019
requirements.txt Remove dependency voxel Dec 31, 2018
wfc.py

README.md

wave-function-collapse

Wave function collapse python implementation. It supports 1D, 2D, 3D samples.

wfc_example

Installation

pip install -r requirements.txt

py-vox-io is used to load magica voxel file to numpy array.

Usage

See main.py for usage example.

Examples

Midi file

See examples/midi.py

Voxel

See examples/voxel.py

wfc_example

You can’t perform that action at this time.