Its kinda complex, it pretty much generates patches based on how closely the colors around it match It takes forever to finish so just stop it at like 93% === Run in turbo=== (Shift-Click flag) Kinda looks like someone speed drawing
Updated some things and made it run a little little tiny bit faster http://phosphorus.github.io/app.html?id=91550659&turbo=true&full-screen=false