Wave Fuction Collapse python implementation, with Auto-Color detection
- make a python virtual environment:
python -m venv env
- activate the environmen:
./env/scripts/activate
- install the requirements:
pip install -r requirements.txt
- run main.py:
python main.py
OR - change directory to examples:
cd examples
- run better_roads.py:
python better_roads.py
- change directory to wfc_PIL:
cd wfc_PIL
- run main.py:
python main.py
- the image is exported as output.png in the same folder
- press r to restart the simulation
In auto-color detection, with the help of Pillow, the program gets 3 points from each side of a particular tile, then stores them as side value instead of pre-defining it