Permalink
Browse files

Include Peasycam library.

  • Loading branch information...
1 parent 8019484 commit b9922a0a64de98f0c2813e1a31d5fa287f34b6ce @jdf committed Sep 1, 2013
Showing with 19 additions and 0 deletions.
  1. +19 −0 examples.py/peasycam.py
  2. BIN libraries/peasycam.jar
View
@@ -0,0 +1,19 @@
+from peasy import PeasyCam
+
+def setup():
+ size(200, 200, P3D)
+ cam = PeasyCam(this, 100)
+ cam.setMinimumDistance(50)
+ cam.setMaximumDistance(500)
+
+def draw():
+ rotateX(-.5)
+ rotateY(-.5)
+ background(0)
+ fill(255,0,0)
+ box(30)
+ pushMatrix()
+ translate(0,0,20)
+ fill(0,0,255)
+ box(5)
+ popMatrix()
View
Binary file not shown.

0 comments on commit b9922a0

Please sign in to comment.