Pretty clever. Somewhat related, if you want to match the colours of an entire image to an other, you can use optimal transport [1]
Unrelated, the author has a very nice take on generating the organic grid from Oskar Stålberg’s Townscaper game [2].
Unrelated, the author has a very nice take on generating the organic grid from Oskar Stålberg’s Townscaper game [2].
While that is a much simpler solution and quite a nice writeup, it doesn't quite solve the problem that townscaper poses. For that it needs to be infinitely expandable, which is quite a different feat.
AIUI, that is the general “optimal transport problem”. Now replace ore with colors and it applies to the problem above :)