Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Processing Library for writing HPGL (plotter) files

License

NotificationsYou must be signed in to change notification settings

ciaron/HPGLGraphics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This library implementsHPGL (Hewlett-Packard Graphics Language) file creation from Processing sketches. It works in much the same way as the PDF Export and DXF Export libraries bundled with Processing.

Getting started

Download the libraryhere. Unzip into your sketchbook/libraries folder.

import hpglgraphics.*;HPGLGraphics hpgl = (HPGLGraphics) createGraphics(width, height, HPGLGraphics.HPGL);beginRecord(hpgl);// do some drawingendRecord();

Have a look at the examples included with the library. These demonstrate:

line()ellipse()arc()     // PIE, CHORD and OPENrect()vertex()curveVertex()bezierVertex()

Additional methods

Some additional methods are available for controlling the HPGL output. This include:

selectPen(int pen);         // choose another pen (e.g. colour)setPaperSize(String size);  // "A3" or "A4". Landscape orientation. Defaults to A4setPath(String filename);   // optional. HPGL is output to this file in the sketch directory.                             // The default is "output.hpgl".

Tips:

  • line() always finishes with Pen Up. To draw continuous joined lines without lifting the pen, use vertex() instead.

To check your HPGL files, I recommendhp2xx

This library was inspired by, and builds upon, these libraries:

The website for the library ishere.Source code ishere

About

Processing Library for writing HPGL (plotter) files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java72.3%
  • CSS14.0%
  • HTML12.6%
  • Shell1.1%

[8]ページ先頭

©2009-2025 Movatter.jp