Help to find an algorithm for creating cells by spiral on the hexagonal field.
Look at the image:
Let's imagine an dimensionless 2d array. The X axis is the blue line, Y is horizontal, spiral is red.
I need to add cells from the central point x0y0 to point N by spiral
Tell me the way to solve the problem, please. Thank you!