GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - anachrocomputer/vec: Vector graphics software to generate HPGL output to drive a plotter

BranchesTags
Open more actions menu

Latest commit

 

History

199 Commits
199 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
TODO.md
TODO.md
 
 
a6cardlabels.c
a6cardlabels.c
 
 
allover12.c
allover12.c
 
 
allover13.c
allover13.c
 
 
arches.c
arches.c
 
 
celticstep.c
celticstep.c
 
 
circle4.c
circle4.c
 
 
circle_lines.c
circle_lines.c
 
 
coords.c
coords.c
 
 
cs_rosette.c
cs_rosette.c
 
 
curve_stitching.c
curve_stitching.c
 
 
cutout_hex.c
cutout_hex.c
 
 
dala1.c
dala1.c
 
 
dala2.c
dala2.c
 
 
dala2c.c
dala2c.c
 
 
dala3.c
dala3.c
 
 
dome.c
dome.c
 
 
ellipse.c
ellipse.c
 
 
flake.c
flake.c
 
 
fraserspiral.c
fraserspiral.c
 
 
frustum.c
frustum.c
 
 
hconic2.c
hconic2.c
 
 
hexagon.c
hexagon.c
 
 
hexspiral.c
hexspiral.c
 
 
hilb.c
hilb.c
 
 
hpgllib.c
hpgllib.c
 
 
hpgllib.h
hpgllib.h
 
 
hyp.c
hyp.c
 
 
isogrid.c
isogrid.c
 
 
libtest.c
libtest.c
 
 
linetiles.c
linetiles.c
 
 
lissajous.c
lissajous.c
 
 
lobe.c
lobe.c
 
 
lotus.c
lotus.c
 
 
morphpoly.c
morphpoly.c
 
 
octoflower.c
octoflower.c
 
 
op.c
op.c
 
 
op_moire.c
op_moire.c
 
 
pappus.c
pappus.c
 
 
pconic.c
pconic.c
 
 
pin_and_cotton.c
pin_and_cotton.c
 
 
pin_circle.c
pin_circle.c
 
 
piscis.c
piscis.c
 
 
plottext.c
plottext.c
 
 
poly_oval.c
poly_oval.c
 
 
qr_sample.pbm
qr_sample.pbm
 
 
qrplot.c
qrplot.c
 
 
reuleaux.c
reuleaux.c
 
 
rtree.c
rtree.c
 
 
spiralsq.c
spiralsq.c
 
 
spiro.cpp
spiro.cpp
 
 
spiro.h
spiro.h
 
 
sqinsq.c
sqinsq.c
 
 
star_grid.c
star_grid.c
 
 
superellipse.c
superellipse.c
 
 
sutpent.c
sutpent.c
 
 
ternary_arcs.c
ternary_arcs.c
 
 
tree.c
tree.c
 
 
truchet1.c
truchet1.c
 
 
truchet2.c
truchet2.c
 
 
truchet_hex.c
truchet_hex.c
 
 
turtle.c
turtle.c
 
 
turtle.h
turtle.h
 
 
twist.c
twist.c
 
 
zigzag.c
zigzag.c
 
 
zigzag.pgm
zigzag.pgm
 
 

Repository files navigation

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.

About

Vector graphics software to generate HPGL output to drive a plotter

Topics

cdrawingdrawingsgeometricgeometryhpglpenpen-holderspen-plottersplotterroland-plottersvector-graphics

Resources

Readme
Activity

Stars

27 stars

Watchers

8 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.