Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/awdriggs/processing2hpgl
Processing Library to interface with HP pen plotters using HPGL
https://github.com/awdriggs/processing2hpgl
Last synced: about 1 month ago
JSON representation
Processing Library to interface with HP pen plotters using HPGL
- Host: GitHub
- URL: https://github.com/awdriggs/processing2hpgl
- Owner: awdriggs
- License: other
- Created: 2023-02-23T19:58:04.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-08T19:36:25.000Z (over 1 year ago)
- Last Synced: 2024-08-02T02:04:13.838Z (4 months ago)
- Language: Java
- Size: 293 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: license.txt
Awesome Lists containing this project
- awesome-plotters - processing2hpgl - A Processing library that allows for direct communication with HPGL pen plotters from within a Processing sketch. (Software / HPGL)
README
# processing2hpgl
An HPGL and Processing mash-up. Allows for a direct connection between Processing and HP compatible Pen Plotters. The goal of this project is to match processing drawing commands to HPGL commands, giving you direct control of the printer from Processing.
## Resources
- Hewlett Packard Graphics Language [HPGL Reference](https://www.isoplotec.co.jp/HPGL/eHPGL.htm#Table%20of%20contents)## Tested Printers
### HP7475A
[Manual](https://pearl-hifi.com/06_Lit_Archive/15_Mfrs_Publications/20_HP_Agilent/HP_7475A_Plotter/HP_7475A_Op_Interconnect.pdf)
* HPGL1 Doesn't support polygon fills## Notes
- The Processing coordinate system and the HPGL coordinates don't match. In processing, (0,0) is the upper left corner while in HPGL it is the lower left corner.
- Library makes the assumption that all angles are expressed in radians
- Currently, no option to draw ellipses. Is is possible with HPGL but requires some use of the scale command. See this [forum thread](https://h30434.www3.hp.com/t5/Printers-Archive-Read-Only/draw-ellipse-or-oval-with-hp-gl-2/td-p/4519666)
- Likewise, Arcs cannot be elliptical.## Acknowledgements
- Thanks to Tobias Toft, I used (his example)[https://github.com/tobiastoft/SymbolicDisarray) as a starting point for the plotter class.