There's a standard algorithm everyone uses to draw regular hyperbolic tilings on...

@csk@mathstodon.xyz

There's a standard algorithm everyone uses to draw regular hyperbolic tilings on the GPU: given a point in the Poincaré disk, repeatedly reflect it across the edges of a fundamental triangle of the tiling until it lies inside that triangle, and then sample a colour.

Is there a decent reference for that algorithm, i.e., a paper or even a blog post? As far as I know it's a "folk algorithm" that everyone just seems to know about.