Skip to content

Commit

Permalink
Update OrthoVSPerspective.py
Browse files Browse the repository at this point in the history
PI/3 changed to THIRD_PI and extra noFill() is removed.
  • Loading branch information
prabhjotsumman committed Feb 27, 2016
1 parent 836b524 commit 1e28b80
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples.py/3D/Camera/OrthoVSPerspective.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
showPerspective = True
def setup():
size(640, 360, P3D)
noFill()
fill(204)
noStroke()

Expand All @@ -25,13 +24,13 @@ def draw():
background(0)
far = map(mouseX, 0, width, 120, 400)
if showPerspective:
perspective(PI / 3.0, float(width) / float(height), 10, far)
perspective(THIRD_PI, float(width) / height, 10, far)
else:
ortho(0, width, 0, height, 10, far)

translate(width / 2, height / 2, 0)
rotateX(-PI / 6)
rotateY(PI / 3)
rotateX(-0.5 * THIRD_PI)
rotateY(THIRD_PI)
box(160)


Expand Down

0 comments on commit 1e28b80

Please sign in to comment.