andrewkchan / wave-function-collapse

Annotated implementation of wave function collapse algorithm

Home Page:https://andrewkchan.github.io/wave-function-collapse/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wave function collapse is an algorithm that generates bitmaps locally similar to an input bitmap. The algorithm turns the task into a constraint satisfaction problem; the solution space consists of images which satisfy some definition of "locally similar", and images can then be sampled from this space.

This repository contains an online demo and commented Typescript re-implementation of Maxim Gumin's original C# implementation (https://github.com/mxgmn/WaveFunctionCollapse).

About

Annotated implementation of wave function collapse algorithm

https://andrewkchan.github.io/wave-function-collapse/

License:MIT License


Languages

Language:TypeScript 90.3%Language:HTML 9.2%Language:CSS 0.5%