hello all
just a short proof of concept for public discussion. what about python for processing?
http://i.document.m05.de/?p=483
Code: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())
1. just download and install jython:
http://www.jython.org/Project/download.html
2. put you processing libs into java classpath or modify the startup file (jython) in order to do so:
Code:#!/bin/sh
# This file was generated by the Jython installer
# Created on Mon May 19 20:25:40 CEST 2008 by me
CP=”/Users/me/jython2.2.1/jython.jar:/Applications/Processing/lib/core.jar”
if [ ! -z “$CLASSPATH” ]
then
CP=$CP:$CLASSPATH
fi
“/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java” -Dpython.home=”/Users/me/jython2.2.1″ -classpath “$CP” org.python.util.jython “$@”
3. start the python file in your shell:
./jython helloProcessing.py