Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

kazimuth/python-mode-processing

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Python Mode

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)

About

Processing + Jython

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.