Skip to content

polymeris/clj-hex-grid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-hex-grid

clj-hex-grid Build Status Clojars Project

A Clojure library implementing the algorithms specified in http://www.redblobgames.com/grids/hexagons/.

Feature Cube Offset Axial Flat Pointy
Angles, size, spacing
Coordinate conversions
Neighbours†
Distances
Range
Rotation
Rings & spirals
Line drawing
Field of View‡
Hex to pixel & viceversa
Pathfinding
Wraparound maps

† No diagonals ‡ Small FOV only

License

Copyright © 2015 FIXME

Distributed under the Eclipse Public License, the same as Clojure.

About

A basic Clojure library for working with hexagonal grids (inspired by http://www.redblobgames.com/grids/hexagons/)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%