drawhx

command module
v0.0.0-...-275f7fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL