Export Chiplotle-HPGL objects to an image file format via hp2xx.
single Chiplotle-HPGL object.
filename the file name, including path but without extension.
Chiplotle-HPGL objects will be exported. Default is ‘eps’. Valid formats are: cad, dxf, em, epic, eps, esc2, fig, gpt, hpgl, img, jpg, mf, nc, pbm, pcl, pcx, png, pre, rgip, svg, tiff.
Note
You must have hp2xx installed before you can export Chiplote-HPGL objects to image files.
Reads a text HPGL file and “inflates” it by creating Chiplotle-HPGL class instances of the found HPGL commands.
Example:
chiplotle> square = import_hpgl_file('examples/square.hpgl')
chiplotle> square
[SP(pen=1), PU(xy=[ 100. 100.]), PD(xy=[ 200. 100.]),
PD(xy=[ 200. 200.]), PD(xy=[ 100. 200.]),
PD(xy=[ 100. 100.]), SP(pen=0)]
Save text HPGL from Chiplotle-HPGL.
Displays Chiplotle-HPGL objects for prevewing.
expr can be an iterable (e.g., list) or a Chiplotle-HPGL object.
converted for viewing. The default is ‘eps’.
Computes Bezier interpolations from given control_points. This uses the generalized formula for bezier curves: http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Generalization