https://github.com/andeemarks/clj-hex-grid
A basic Clojure library for working with hexagonal grids (inspired by http://www.redblobgames.com/grids/hexagons/)
https://github.com/andeemarks/clj-hex-grid
Last synced: 3 months ago
JSON representation
A basic Clojure library for working with hexagonal grids (inspired by http://www.redblobgames.com/grids/hexagons/)
- Host: GitHub
- URL: https://github.com/andeemarks/clj-hex-grid
- Owner: andeemarks
- License: epl-1.0
- Created: 2015-09-19T04:31:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T02:19:47.000Z (almost 10 years ago)
- Last Synced: 2025-04-11T17:00:07.288Z (9 months ago)
- Language: Clojure
- Size: 73.2 KB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clj-hex-grid
A Clojure library implementing the algorithms specified in http://www.redblobgames.com/grids/hexagons/.
[](https://snap-ci.com/andeemarks/clj-hex-grid/branch/master)
## Features
1. Angles, size, spacing - Done
1. Coordinate systems - To do
1. Conversions - Done (offset to/from cube only, no axial)
1. Neighbours - Done (cube and offset, no axials, no diagonals)
1. Distances - Done (cube and offset coordinates)
1. Line drawing - Done (cube coordinates)
1. Range - In progress
1. Rotation - To do
1. Rings - To do
1. Field of view - To do
1. Hex to pixel - To do
1. Pixel to hex - To do
1. Rounding - To do
1. Map storage - To do
1. Wraparound maps - To do
1. Pathfinding - Done (cube coordinates)
## License
Copyright © 2015 FIXME
Distributed under the Eclipse Public License, the same as Clojure.