@gongfuio/hexgrid
v1.0.0
Published
‹Hexgrid› implementation from Red Blob Games (https://www.redblobgames.com/grids/hexagons/implementation.html) packaged as an ES module
Downloads
16
Readme
@gongfuio/hexgrid
package
‹Hexgrid› implementation from Red Blob Games, packaged as an ES module.
Build
$ cd packages/hexgrid
$ npm install
$ npm run build
Usage
Install in your project:
$ cd webapp
$ npm install --save @gongfuio/hexgrid
Use from a module:
import { Layout } from '@gongfuio/hexgrid';
const layout = Layout.pointy;