The original hat tile paper came with a nice webdemo
(https://github.com/isohedral/hatviz) for recursively builidng a tiling following the method in the paper. I have a version with a few additions (Truchet patterns) hosted if anyone wants to play around with it here: https://www.johansivertsen.com/customhatviz/app.html