Package obitools :: Module svg
[hide private]
[frames] | no frames]

Module svg

source code

SVG.py - Construct/display SVG scenes.

The following code is a lightweight wrapper around SVG files. The metaphor is to construct a scene, add objects to it, and then write it to a file to display it.

This program uses ImageMagick to display the SVG files. ImageMagick also does a remarkable job of converting SVG files into other formats.

Classes [hide private]
  Scene
  Line
  Circle
  Rectangle
  Text
Functions [hide private]
 
colorstr(rgb) source code
 
test() source code
Variables [hide private]
  display_prog = 'display'
  __package__ = 'obitools'

Imports: os