Module spiral

Module spiral 

Source

Structsยง

Spiral2d
An iterator of coordinates that create a rectangular spiral out from the origin