diff --git a/docs/main.js b/docs/main.js index be6161e..148ead1 100644 --- a/docs/main.js +++ b/docs/main.js @@ -203,7 +203,7 @@ { name: 'triangle' }, { name: 'rhombus' }, { name: 'pentagon' }, - { name: 'hexgon' }, + { name: 'hexagon' }, { name: 'heptagon' }, { name: 'octagon' }, { name: 'cross' }, diff --git a/src/shapes.js b/src/shapes.js index d01a878..f9c3fcb 100644 --- a/src/shapes.js +++ b/src/shapes.js @@ -61,6 +61,9 @@ export function pentagon() { export function hexgon() { return polygon({ split: 6, start: 30 }); } +export function hexagon() { + return polygon({ split: 6, start: 30 }); +} export function heptagon() { return polygon({ split: 7, start: -90});