Skip to content

Suppan/wave-function-collapse-lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

wave-function-collapse-lua

simple algorithm1 to create complex structures with simple rules (which neighbours are allowed)

Usage

after installing Lua (ie via homebrew: brew install lua) and ghostscript (ie via homebrew: brew install ghostscript) for use of ps2pdf

enter in terminal:

lua main.lua

result: "demo.pdf" (dim=10x10)

random seed = 1717255150
wfc.rand5()
dimx = 	15
dimy = 	15
225 cycles calculated
0 errors!

You can set/alter the dimension (size) in the file "main.lua"

build with this tiles:

1-5 (1=blank):

Futher informations and descriptions: https://github.com/mxgmn/WaveFunctionCollapse


This program is free software. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Footnotes

  1. Wave Function Collapse (WFC) is an algorithm developed by Maxim Gumin based on work by Paul Merrell for generating tile based images based off simple configuration or sample images

About

simple algorithm to create complex structures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages