Navigation Menu

Skip to content

hallc/hexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexer

Copyright © 2018 Chris Hall

Introduction

Hexer is a command line tool for generating SVG hex grids.

Installing

Check out the project, install any required dependencies, and run hexer.py.

pip install < requirements.txt
./hexer.py -h

Usage

./hexer.py -h
usage: hexer.py [-h] [-d DPI] [-s {hexes,crowsfeet}] [-o OUTPUT] width height hex_size

# Generate a 1920 x 1440 pixel grid with 50 pixel hexes:
./hexer.py 1920 1440 50 -o output.svg

# Generate a 36" x 48" grid with 2" hexes, at 150 DPI:
./hexer.py 36 48 2 -d 150 -o output.svg

# Generate a grid with crowsfeet instead of hexes:
./hexer.py 36 48 2 -d 150 -s crowsfeet -o output.svg

License

This program is distributed under the MIT license.

About

Hexer is a command line tool for generating SVG hex grids

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages