This project has been supplanted by the python mode in Processing.py, which I'm working with Jonathan Feinberg on. You should use that!
Processing is awesome! Jython is awesome! Together, they are very awesome!
This project uses Processing 2.0's mode infrastructure to create a seamless blend of Processing and python.
Inspired by the handsome processing.py.
This is very much a work-in-progress. Don't expect it to work very well right now.
To download: Click here! (Or clone the repository)
To install: unzip PythonMode.zip into "{your sketch folder}/modes/PythonMode" and restart Processing.
Check build.xml for building instructions.
Changes:
- the Processing set() function is now called setPixel(), because python
Done:
- Basic functionality- running python code
- Basic indentation & highlighting
- Preprocessor
Currently working on:
- Library imports and sketch exports
Future work:
- Better autoindent & syntax highlighting
- REPL for live coding
A working sketch (copy and paste into the PDE to try it out!):
def setup():
size(300, 300)
smooth()
stroke(255)
background(0)
def draw():
line(mouseX+random(-40, 40), mouseY+random(-40, 40), mouseX, mouseY)
def keyPressed():
background(0)