Project

polygonfy

0.0
No commit activity in last 3 years
No release in over 3 years
Draw an SVG polygon easily from the command line
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 10.0
~> 3.0

Runtime

~> 1.7.1
 Project Readme

Polygonfy

Draw an SVG polygon easily from the command line.

Installation

$ gem install polygonfy

Usage

format:

$ polygonfy FILENAME ID,X,Y ID,X,Y ID,X,Y ...

in terminal:

$ polygonfy mymap.svg 1,00,0 2,100.50,100.50 3,0,200.70
  1. "mymap.svg" is output file;
  2. others parameters are points in (ID,X,Y) format

You can also use with pipe operator:

$ myowntask | polygonfy mymap.svg
  1. Since "myowntask" returns formated points in STDOUT

License

The gem is available as open source under the terms of the MIT License.