An open API service indexing awesome lists of open source software.

https://github.com/Coac/wave-function-collapse

Wave function collapse python implementation
https://github.com/Coac/wave-function-collapse

algorithm gamedev procedural-generation wave-function-collapse wfc

Last synced: 3 months ago
JSON representation

Wave function collapse python implementation

Awesome Lists containing this project

README

        

# wave-function-collapse

[Wave function collapse](https://github.com/mxgmn/WaveFunctionCollapse) python implementation.
It supports 1D, 2D, 3D samples.

![wfc_example](./docs/wfc.gif)

## Installation
```
pip install -r requirements.txt
```
[py-vox-io](https://github.com/gromgull/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](./docs/wfc_voxel.gif)