Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Include Peasycam library.

  • Loading branch information...
commit b9922a0a64de98f0c2813e1a31d5fa287f34b6ce 1 parent 8019484
@jdf authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 examples.py/peasycam.py
  2. BIN  libraries/peasycam.jar
View
19 examples.py/peasycam.py
@@ -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
BIN  libraries/peasycam.jar
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.