code-poster

command module
v0.0.0-...-33bc780 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2016 License: MIT Imports: 12 Imported by: 0

README

code-poster

Produce an image poster from a path of source files.

To get inspired and see some examples, visit: https://commits.io

Installation

go get -u github.com/djui/code-poster

Usage

code-poster -h
Usage of code-poster:
  -alphathreshold float
    	alpha threshold for image mask [%] (default 0.5)
  -bgcolor string
    	foreground/text color [rgba] (default "#ffffff")
  -debug
    	debug mode
  -fgcolor string
    	foreground/text color [rgba] (default "#808080")
  -fontname string
    	font name (default "monospace")
  -fontsize float
    	font size [cm] (default 0.1)
  -fontspacing float
    	font glyph spacing [%]
  -height float
    	height [cm] (default 12)
  -mask string
    	path to image mask [png]
  -maskdpi int
    	DPI of image mask (default 72)
  -maskscale float
    	scale of image mask [%] (default 1)
  -monochrome
    	monochrome mode
  -out string
    	path to image output [svg]
  -src string
    	path to source code
  -srcpattern string
    	pattner of source code filename (default "*.go")
  -width float
    	width [cm] (default 10)

Examples

code-poster -srcpattern "*.py" -out poster.svg -mask mask.png
inkscape --without-gui "$PWD/poster.svg" -A "$PWD/poster.pdf"

Restrictions

  • The output file must be of filetype SVG
  • The mask file must be of filetype PNG

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