1.0.8 • Published 5 years ago

hexagonal-grid v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

hexgrid.js

A javascript library implementing hexagonal grids in various forms.

Usage

There are currently 3 main ways to directly use hexagonal-grid, with a canvas

var grid = new hexgrid.CanvasHexagonalGrid();
grid.animate();

with webgl

var grid = new hexgrid.WebGLHexagonalGrid();
grid.animate();

or directly in the DOM

var grid = new hexgrid.DOMHexagonalGrid();

Examples

For a full list of examples, go to the examples page

Installation

Direct Download

Download the javascript file here, (minified, map)

CDN

Use directly in your HTML page

<script type="text/javascript" src="https://hitcherland.github.io/hexagonal-grid.js/hexagonal-grid.min.js"></script>

npm

Install from the npm repositories

npm i hexagonal-grid

github

Or pull directly from github

git clone https://hitcherland.github.io/hexagonal-grid