@futurebird Also very similar are "partial Gauss sums". It's pure turtle geometry. You keep a count of the number of (constant length) steps you've taken and you turn by its square (or cube etc.) - suitably scaled.
https://www.bennetyee.org/ucsd-pages/pub/Yee-IncGaussSum.pdf
