Permalink
Browse files

More work on README, with tested import examples :P

  • Loading branch information...
1 parent f9820c4 commit dddeceae4bd5601d3dde5c3028fae899cd25beed @google-feinberg google-feinberg committed Aug 12, 2010
Showing with 15 additions and 2 deletions.
  1. +1 −1 .gitignore
  2. +14 −1 README.txt
View
@@ -11,4 +11,4 @@ line.pdf
generated/jycessing/*.java
build
processing-py.jar
-
+libraries/peasycam
View
@@ -9,8 +9,21 @@ Jonathan Feinberg <jdf@pobox.com>
$ java -jar processing-py.jar examples.py/Library/OpenGL/SpaceJunk/SpaceJunk.py
Put processing extension libraries in "libraries" directory any way you like.
+Import them in the usual Python way, e.g.
-Use "this" to refer to the running applet, e.g.
+ import peasy.PeasyCam
+ cam = peasy.PeasyCam(this, 200)
+or
+
+ import peasy.PeasyCam as PeasyCam
+ cam = PeasyCam(this, 200)
+
+or
+
+ from peasy import PeasyCam
cam = PeasyCam(this, 200)
+Unfortunately, "from foo import *" is not supported.
+
+Use "this" to refer to the running applet, as in the examples above.

0 comments on commit dddecea

Please sign in to comment.