Algorithm to generate a hexagonal grid with coordinate system
I have figured it out, thanks for the feedback Tanmay. I noticed that the y-offset was incorrect for n – cols and should be row – half instead. Below is the most comprehensive and compact code I could obtain. Although it is preferred to enter an odd integer for the size, you could enter a … Read more