From 54585ba35adc6afc46201b746401c5a8a66ab6fa Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 29 May 2011 12:43:00 -0600 Subject: Add transform() to Python Objects. --- libdimension-python/tests/demo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libdimension-python/tests') diff --git a/libdimension-python/tests/demo.py b/libdimension-python/tests/demo.py index 982fa60..fd4d193 100755 --- a/libdimension-python/tests/demo.py +++ b/libdimension-python/tests/demo.py @@ -39,14 +39,14 @@ camera = PerspectiveCamera(location = (0, 0.25, -4), look_at = Zero) camera.transform(rotate(53*Y)) -objects = [] - -sphere = Sphere(radius = 1, center = Zero) -objects.append(sphere) +objects = [ + Sphere(radius = 1, center = Zero) +] scene = Scene(canvas = canvas, camera = camera, objects = objects) scene.raytrace() -canvas.writePNG('demo.png') +if havePNG: + canvas.writePNG('demo.png') -- cgit v1.2.3