Live coding: Hex maps and GTK
Channel: Savanni D'Gerinel
Date: 2023-01-15

In this video, I start out with a basic GTK app that presents a drawing surface. Over the course of an hour, I evolve it to show a grid of hexagons based on an abstract set of hex coordinates. Then I add on back-calculations to associate the mouse location with a particular hexagon.

The end result is very buggy, but also very cool!

Here's a batch of resources that I used:

- Hexagonal Grids: https://www.redblobgames.com/grids/hexagons/
- How to find the coordinates in a hexagon: https://www.quora.com/How-can-you-find-the-coordinates-in-a-hexagon
- Cairo Vector Graphics: https://www.cairographics.org/manual/
- GUI Development with Rust and GTK: https://gtk-rs.org/gtk4-rs/stable/latest/book/introduction.html