Title: Draw a rotated hexagonal grid in C#
The post Draw a hexagonal grid in C# shows how to draw a hexagonal grid. This post shows how to make a similar grid but with the hexagons rotated so their pointy sides are on the top and bottom as shown in the picture on the right.
Actually this post doesn't explain much. It just refers you to the previous example. This example is basically the same as the previous one except with width/height, row/column, and x/y playing swapped roles. See that example for the basic ideas and the geometry. The changes are straightforward but there are a lot of them so it can be hard to work through them all without making any mistakes.
Download the example to experiment with it and to see additional details.
|