I think the original idea is from Paul Bourke. He calls it a Spiral Honeycomb Mosaic (SHM).
See his "Tiling on The Plane" page [1]. Scroll down to the section titled "Hexagonal Lattice" (contains links to source code with coordinate conversions).
Here is a Rust implementation of a different variant of the same idea [2].