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
- Host: GitHub
- URL: https://github.com/Coac/wave-function-collapse
- Owner: Coac
- Created: 2018-11-10T10:53:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-17T10:34:27.000Z (about 6 years ago)
- Last Synced: 2025-02-14T03:36:06.770Z (3 months ago)
- Topics: algorithm, gamedev, procedural-generation, wave-function-collapse, wfc
- Language: Python
- Homepage:
- Size: 1.09 MB
- Stars: 62
- Watchers: 7
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.
## 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`