https://digimoview.github.io/posts/sand-castle-directed-drawing/