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!

OpenGL SVG Renderer

Project Description


A python library for parsing and displaying SVG files
using opengl, with a focus on being usable for games.

import glsvg

# initialize opengl context
# ...

# load svg file
svg_doc = glsvg.SVG(filename)

# draw svg file


- PyOpenGL

Supported game libraries:
- PyGame
- Pyglet

Supported SVG features:
- All SVG path commands (arc/curves/lines/etc.)
- Basic SVG shapes (rectangle, ellipse)
- Per-Pixel Linear and Radial Gradients
- Parsable color names
- Variable line widths and miter/bevel joints

SVG Features In Progress:
- SVG patterns
- SVG effects (Drop shadow, blur, etc.)
- More sophisticated line effects (patterns, arc joints, etc.)

Likely to be not supported:
- Animation
- Text (this would be likely to require too many extra dependencies for fonts, but an easy workaround is to convert text
objects to paths in your editor, ie Inkscape or Illustrator)
- CSS based style tags


Based on the squirtle mini-library by Martin O'Leary:

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(392.5 kB) Copy SHA256 Hash SHA256
Source Mar 12, 2013

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting