https://github.com/kylestetz/gragl
Python graphics library for prototyping interactive software, based on PyOpenGL.
https://github.com/kylestetz/gragl
Last synced: 2 months ago
JSON representation
Python graphics library for prototyping interactive software, based on PyOpenGL.
- Host: GitHub
- URL: https://github.com/kylestetz/gragl
- Owner: kylestetz
- Created: 2012-07-19T23:21:40.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-07-23T11:11:18.000Z (almost 14 years ago)
- Last Synced: 2025-01-28T17:14:06.410Z (over 1 year ago)
- Language: Python
- Size: 1.84 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
------
GraGL!
------
GraGL is a framework for prototyping 2D interactions and interfaces using Python.
It takes care of the confusing part- setting up a pixel-perfect 2D OpenGL context- and provides some handy functions for developing 2D applications quickly.
It's built in the style of Processing and OpenFrameworks, so if you're familiar with those you will pick this up quickly.
Some algorithms are borrowed; credit is given where that happens.
Established and maintained by Kyle Stetz. kylestetz@gmail.com.
Check out 01_begin.py for some eye candy and 02 & 03 to get a feel for how apps are set up.
-------------
DEPENDENCIES.
-------------
Of course there's a catch- here are some dependencies.
the only truly necessary piece:
~PyOpenGL 3 http://pypi.python.org/pypi/PyOpenGL
for images (GraGL_image.py):
~PIL http://www.pythonware.com/products/pil/
~numpy http://sourceforge.net/projects/numpy/files/
for fonts (GraGL_typeface.py):
~PIL http://www.pythonware.com/products/pil/
~FreeType (a C library)
> http://freetype.sourceforge.net/download.html#stable
> or in macports: "sudo port install freetype"
~freetype-py http://code.google.com/p/freetype-py/downloads/list
----------------
AS FAR AS I KNOW
----------------
this should work on multiple platforms, though I've only tested it on OS X 10.4 and 10.7.