cleaned up computation for hex bounding box

This commit is contained in:
Gavin McDonald
2018-07-06 12:00:58 -04:00
parent eb04c3f0eb
commit d3540ed117
3 changed files with 29 additions and 59 deletions

View File

@@ -13,11 +13,11 @@ class Demo {
let tessellate = new Tessellate({
element: '#container',
board: Tessellate.BOARD_STYLES.SQUARE,
tile: Tessellate.TILE_STYLES.SQUARE,
board: Tessellate.BOARD_STYLES.HEX,
tile: Tessellate.TILE_STYLES.HEX,
tap: this.onTap,
draw: this.draw,
pointyTop: true, //utils.random(1) ? true : false,
pointyTop: false, //utils.random(1) ? true : false,
});
this.circle = new DrawCircle();