Triangle grids

 from Red Blob Games
29 May 2021

https://www.boristhebrave.com/2021/05/23/triangle-grids/#How_to_Use_Triangles_Grids[1]

https://github.com/BorisTheBrave/grids/blob/main/src/updown_tri.py[2]

https://brython.info/gallery/gallery_en.html[3]

brython notes:

source code for this test page: diagram.py

I don’t think I’ll end up using this, but it could be useful for people who already have python code and want to make an interactive diagram.

Also see https://twitter.com/sealgrim/status/1723400771209748519[5] for converting triangle coordinates into hexagonal cubic coordinates

Email me , or tweet @redblobgames, or comment: