https://en.wikipedia.org/wiki/Space-filling_curve
https://en.wikipedia.org/wiki/Z-order_curve
Original paper from 1966:
https://en.wikipedia.org/wiki/Hilbert_curve
Paper that explains how to implement it, often cited by implementations
Some implementations:
From that book: