Pretty clever. Somewhat related, if you want to match the colours of an entire image to an other, you can use optimal transport [1]<p>Unrelated, the author has a very nice take on generating the organic grid from Oskar Stålberg’s Townscaper game [2].<p>[1]: <a href="https://codimd.math.cnrs.fr/s/2eRBqV9zl" rel="nofollow">https://codimd.math.cnrs.fr/s/2eRBqV9zl</a><p>[2]: <a href="https://andersource.dev/2020/11/06/organic-grid.html" rel="nofollow">https://andersource.dev/2020/11/06/organic-grid.html</a>