Coder Social home page Coder Social logo

anachrocomputer / vec Goto Github PK

View Code? Open in Web Editor NEW
23.0 9.0 3.0 321 KB

Vector graphics software to generate HPGL output to drive a plotter

C 93.69% C++ 2.23% Makefile 4.08%
plotter hpgl c pen-plotters vector-graphics roland-plotters drawing pen-holders pen drawings

vec's Introduction

vec

Vector graphics demo software to run on an HPGL pen plotter.

The programs are in C and may be compiled with 'gcc' on Linux (MacOS X may also work). They generate HPGL and send it to a plotter via the parallel port (/dev/usb/lp0), the serial port (/dev/ttyUSB0), or to a file. Most of the programs accept command-line arguments to scale the vector drawings up or down (default size is suitable for ISO A3 paper).

HPGL

HPGL stands for Hewlett-Packard Graphics Language. It is a simple text-based language to encode vector graphics and drive pen plotters. Most pen plotters will accept it, not just those made by HP.

The basic resolution of HPGL is 40 plotter units per millimetre. HPGL drawing primitives are straight lines, arcs, and text.

Useful Tools

To build the programs, we'll need the 'build-essential' package:

sudo apt install build-essential

To preview the HPGL files on a raster-scan display, use a package called 'hp2xx'. Install it with a command-line such as:

sudo apt install hp2xx

The Makefile will use 'hp2xx' to generate low-resolution preview images in PNG format. It also converts the HPGL to SVG for previewing in a browser or for plotting on newer types of plotter such as the AxiDraw.

The Plotters

Most of the programs here have been tested on a Roland DXY-990 A3 flat-bed pen plotter. Some have also been used at A1 size on the much bigger Roland DPX-3300. A few have been tested on the fast HP 7550A A3 grit-wheel plotter.

The Pens

I use Pilot V-Ball pens on the Roland plotters, in modified pen-holders. For thicker lines, I use Staedtler Triplus pens, again with pen-holders that fit the Roland plotters. Other types of pen will no doubt work, and few of the plots here rely on special line width or other pen properties.

Most of the plots require only a single pen.

None of the drawings are intended for use with vinyl cutters, but there's plenty of scope to try that sort of thing.

vec's People

Contributors

anachrocomputer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vec's Issues

How could I generate the demo file?

Hi, I search vec (hpgl) in GitHub and there is a demo image banner. How could I generate this banner file and export it as .plt extension?

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.