Skip to content
This repository was archived by the owner on Sep 3, 2020. It is now read-only.

hiimmrdave/yahg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yahg

A pure javascript framework-in-progress to create and manipulate hexagonal grids using graph concepts.

using yahg

  1. add a reference to graphTheory.js in the head.
  2. Create an SVG element in an HTML document.
  3. after the DOM is loaded, initialize new Grid, Layout, and SVGRenderer
  4. use Grid.populate() and SVGRenderer.render() to display the grid

for now, refer to theorytest.js and graphTheory.html for examples

status

clicking the svg can give the x,y and q,r,s coordinates, but it's not right yet. specifically, x and y are correct, q is probably right, and r and s are wrong if you're not in orientation angle 0.

About

yet another hex grid system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published