Module Drawing
[hide private]
[frames] | no frames]

Module Drawing

source code

Drawing is a module to generate Encapsulated PostScript or SVG images.

Drawing exports a simple procedural API which can be used to generate paths which are then stroked or filled. Drawings created using this API can be exported in any one of the supported formats, although some features (such as those for scriptability) may be ignored for some formats.



Classes [hide private]
  BBox
BBox is a utility class which encapsulates a bounding box.
  OutputLanguage
OutputLanguage abstracts the drawing backend by providing abstract canvas operations.
  PostScript
PostScript backend.
  SVG
SVG backend.
Functions [hide private]
 
_intToStr(num, radix=10)
Convert an integer to a string using the given radix.
source code