Pyscript is a python module for producing high quality postscript graphics. Rather than use a GUI to draw a picture, the picture is programmed using python and the pyscript objects.
The major change in this release is a complete rewrite of the Path object. The internals have completely changed and there have been some incompatible changes with previous versions but its now much closer to what was envisaged for the object.
Other changes are:
- C() no longer takes numerical arguments
- Path() no longer sublasses Area (this doesn't make sense really)
so the points n,ne,e ... etc are not available for this object
use either bbox() method or group and Area object with the path
Additions:
- Path takes 'relative' points R(), these are the same as P() but
will be intepreted as relative to last point.
- C() takes relative control points with R(). The first is relative
the start the second to the end of the curve
- path.length returns the length of the path (local co-ord system)
- path.P(f) returns the point on the curve at fraction f of it's
length
- Finally added some docs for the Path object
- fixed bug with defaults for linewidth etc not being taken up
(thanks Marcus)
- Color() can now take a Hex string, eg "#FF00FF", must start with a '#'
- object reference returned from group's append, insert and reverse
This makes for convenient one liners
- Group() now has a reverse() function
- Pages now produces global BoundinBox and Orientation comments
- Fixed minor bug in Align, when passed single object