Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

2D scene graph based on SVG with OpenGL backend

Project Description

a 2D scene graph based on SVG with OpenGL backend

Goals & non-goals


  • 2D scene graph suitable for interactive rendering
  • minimal set of dependencies


  • full SVG implementation
  • optimized for speed


  • pythonic API modeled after SVG spec & semantic
  • SVG parsing and serialization
  • scale dependent polygonalization
  • analytical picking
  • sub-pixel strokes rendering enhancement through width and opacity correction
  • per-pixel gradients
  • two modes text rendering: raster by freetype2 for high quality AA at small sizes, vector otherwise

SVG spec


  • shapes: path, rect, circle, ellipse, line, polyline, polygon, image
  • text: (excluding decoration, text on path)
  • structure: group, use (including attributes inheritance)
  • painting: solid color, linear and radial gradients (including units, transform, spread, href);
  • fill: rule (nonzero, evenodd)
  • stroke: cap (butt, round, square), join (miter, round, bevel), miterlimit
  • multi-pass rendering: clipping, masking, object opacity
  • transforms: translate, rotate, scale, skewX, skewY


  • tspan
  • painting: pattern
  • stroke: dash, marker
  • filters




Optional dependencies

Needed to find fonts, fallbacks on FreeFont otherwise.

on the mac:


  • sauvage by S. Conversy
  • SVGL by S. Conversy & J.-D. Fekete

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(34.0 kB) Copy SHA256 Hash SHA256
Source None Mar 27, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting