Skip to content

Instantly share code, notes, and snippets.

@jdstein1
jdstein1 / hexagons.js
Created May 6, 2017 15:16 — forked from zackthehuman/hexagons.js
Drawing a hexagonal grid with HTML canvas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Canvas Hexagonal Map</title>
<style type="text/css">
canvas {
border:0;
display:block;
margin:0 auto;