demos/bunny.py
branchpyrit
changeset 75 20dee9819b17
parent 69 303583d2fb97
child 90 f6a72eb99631
--- a/demos/bunny.py	Mon Apr 21 08:47:36 2008 +0200
+++ b/demos/bunny.py	Mon Apr 21 09:05:09 2008 +0200
@@ -18,20 +18,20 @@
 
 mat0 = Material(colour=(0.1, 0.2, 0.6))
 box1 = Box(L=(-20.0, -1.7, -20.0), H=(20.0, -1.5, 20.0), material=mat0)
-rt.addshape(box1)
+rt.addShape(box1)
 
 mat1 = Material(colour=(0.5, 0.5, 0.2))
 mat1.setReflectivity(0.0)
 box2 = Box(L=(-20.0, -20.0, -10.0), H=(20.0, 20.0, -12.0), material=mat1)
-rt.addshape(box2)
+rt.addShape(box2)
 
 light = Light(position=(-5.0, 3.0, 10.0), colour=(0.8, 0.5, 0.6))
 #light.castshadows(0)
-rt.addlight(light)
+rt.addLight(light)
 
 light2 = Light(position=(4.0, 1.0, 10.0), colour=(0.5, 0.55, 0.7))
 #light2.castshadows(0)
-rt.addlight(light2)
+rt.addLight(light2)
 
 imagesize = (800, 600)
 data = rt.render(imagesize)