hex_grid

Hex-grid geometry — pointy-top, ODD-R OFFSET coordinates: coordinate/pixel conversion, neighbours, distance, corners and canonical edges, plus a square local basis for right-angled structures placed on the hex world.

loft install hex_grid
use hex_grid;
Guidegetting started with hex_grid
Version0.1.4 — published 2026-10-05
CategoriesGeometry
Requiresloft >=0.8.5
CompatibilityAPI: drop-in for 0.1.0 and later · stored data: drop-in for 0.1.0 and later
Download20 kB
Public API19 items, with their documentation
Dependenciesnone
Used byhex_draw · hex_fit · hex_form · hex_shape · hex_terrain
Sourceread it here — the libraries are written in loft
Repositoryhttps://github.com/loft-lang/loft-libs-world/tree/main/hex_grid

A drop-in floor is the oldest release of this package the current one still replaces without a source change. Not declared means exactly that — the package has made no promise, which is the honest state for one published before the compatibility contract existed.

← All libraries