I've been looking around for a hexagon grid solution and can't seem to nail one down which works, although so many come close.
I want it pretty much exactly like the one in this example: http://dabblet.com/gist/3952030 as the hexagons are rotated and positioned perfect for me, but with this example I can't find out how to scale/width the hexagons. It says /* .866 = sqrt(3)/2 */
but that doesn't seem to calculate correctly from the values already in there.
I have this other example https://codepen.io/elbarto84/pen/wrcob which is great, but the hexagons are rotated differently that the first example.
So if anyone can help with either:
- Adding more hexagons per row for the first example
- Or rotating the hexagons so they are in the same position as the first example
I'd greatly appreciate :)
Thanks