Skip to content

kazimuth/python-mode-processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Processing Python Mode

Processing is awesome! Jython is awesome! Together, they are TOTALLY 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 install: unzip PythonMode.zip into "{your sketchfolder}/modes/PythonMode" and restart Processing.

Check build.xml for building instructions.

Currently working on:

  • Basic functionality- running python code

Future work:

  • Preprocessor
  • Autoindent & syntax highlighting
  • REPL for live coding

As I don't have the preprocessor done, code isn't very pretty right now, but it works! A working sketch (copy and paste into the PDE to try it out!):

import info.sansgills.mode.python.PythonPApplet as PApplet

class Placeholder(PApplet):
	def setup(self):
		self.size(200, 200)
		self.background(0)
		self.noStroke()
		self.ellipseMode(PApplet.CENTER)
	
	def draw(self):
		self.ellipse(self.mouseX, self.mouseY, 5, 5)

About

Processing + Jython

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •