Hexagons

X: Y: Corners

Manual for xhexagons (similar X program).
JavaScript Source: hexagons.js.