diff options
Diffstat (limited to 'libdimension-python/tests')
-rwxr-xr-x | libdimension-python/tests/demo.py | 10 |
1 files changed, 5 insertions, 5 deletions
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') |