Home
(This is a forked repository. Have a look at bmander’s prender wiki for more information.)
PRender is a python module you can use to drive a Processing renderer subprocess. Like this:
from prender import processing
pr = processing.BaseRenderer()
pr.start(200,200)
pr.line(0,0,100,100)
pr.line(0,100,100,0)
pr.saveLocal( "x.png" )
pr.stop()
As I understand it, it creates a renderer in Java, and then sends messages to it from Python. Currently it only supports static 2D images, saving as PNG?
Thread on Processing.org Forum: http://processing.org/discourse/yabb2/YaBB.pl?num=1235712200
“python processing proof of concept”
http://i.document.m05.de/?p=483
http://processing.org/discourse/yabb2/YaBB.pl?num=1212422307
Combine Jython with the Processing libraries to write processing scripts in Python. One disadvantage is that Jython is way behind CPython, so it doesn’t support anything added to the language since Python 2.2. :’( Jython 2.5 should be out soon, though. :)
i started a short proof of concept of a python based processing. jython is an implementation of python in java. with its help it’s possible to write code with the processing api in python language.
code example (helloProcessing.py):
from processing.core import PApplet
class HelloProcessing(PApplet):
def setup(self):
global p
p = self
p.size(350, 350)
def draw(self):
p.fill(p.random(255))
p.rect(150, 150, 50, 50)
if __name__ == '__main__':
import pawt
pawt.test(HelloProcessing())
Ubuntu examples here.
NodeBox
http://nodebox.net
NodeBox is a Mac OS X application that lets you create 2D visuals (static, animated or interactive) using Python programming code and export them as a PDF or a QuickTime movie. NodeBox is free and well-documented.
NodeBox is a “state machine”. As such, it is easier to understand by people that have no experience in programming. The idea of a state machine, and most of the command set, is adopted from Processing, an open project initiated by Ben Fry and Casey Reas. Processing is a Java learning environment that has dynamic and 3D functionality. Once you know Processing, you know NodeBox.
Mac-only :’(
Field
http://openendedgroup.com/field/
Field replaces the Processing Development Environment and its programming language while allowing you to use all of your favorite Processing libraries and renderers from within Field’s integrated Processing “Applet”. Field has no start or stop button — there’s no compile cycle. You can execute, script, sequence and manipulate code as the “Applet” runs — all while building personal practice-oriented interfaces in the canvas. We think that, for many uses, Field is a better Processing than Processing.
Its programming language of choice is Python
Mac-only :’(