Skip to content

romulous75/wave-function-collapse-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wave Function Collapse

A simple implementation of wave function collapse written in c++

Requirements

  • cmake
  • make
  • gcc with c++11 support
  • libgd with png support

Building

cmake . -DCMAKE_CXX_FLAGS="-s"
make

Usage

./waveformgen

You can tinker around (in main.cpp) with the following values to get different resolutions:

canvasRows - Grid Row count canvasColumns - Grid Column count

Resolution of each tile: tileResolutionX, tileResolutionY

A local benchmark of 100 x 50 cells took 1.59 seconds.

Examples

Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published