Skip to content

Latest commit

 

History

History

drawhx

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Draw

Pipe in a JSON-marshalled slice of hex.Hexes to convert it into a PNG.

Install:

go install .

General usage:

cat logo.json | drawhx -file heythere.png -w 300

Linux-specific handy shortcuts:

# Read from a file, save image to a file, then open it.
cat logo.json | drawhx -file heythere.png -w 300 | xargs xdg-open
# Read from clipboard, stick it in a temp file, then open it.
# sudo apt-get install xsel
xsel -b | drawhx -w 300 | xargs xdg-open