Giter VIP home page Giter VIP logo

pen's Introduction

pen

Draw simple from command line or from file.

This application has been implemented to help generate visualization from debug printouts. Sometimes there are just too much information to see what numbers mean, and then visualization may help to see the big picture.

Requires Gempyre-Python to be installed.

  • off x y - set offset of following coordinates. Default is (0,0) helps you centrify/move drawing.

  • scale s - scales drawing with a given factor. Default is 1.0.

  • line x1 y1 x2 y2 - draw a line.

  • ln x y - draw a joint line from a previous line position.

  • move x y - move a line start position. I.e. 'line x1 y1 x2 y2' and 'move x1 y1 ln x2 y2' are equal expressions.

  • color c - use a given color (HTML color name or HTML color format).

  • color c - use a given color (HTML color name or format).

  • close - close current line to a polygon.

  • circle r x y - draw a circle.

e.g.

$ pen.py off 1000 0 line 1322 12 1350 100 ln 1200 200

is pretty equal with

$ pen.py off 1000 0 move 1322 12 ln 1350 100 ln 1200 200

Read from file:

$ pen.py < lines.txt

pen's People

Contributors

mmertama avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.