diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-05-29 12:43:00 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-05-29 12:43:00 -0600 |
commit | 54585ba35adc6afc46201b746401c5a8a66ab6fa (patch) | |
tree | 0932e8b7bb7c3a590180a22d3b268c4d66ca9dca /libdimension-python/tests | |
parent | 4479d25609e26253c4e5fcfc78b093c0b45cefb8 (diff) | |
download | dimension-54585ba35adc6afc46201b746401c5a8a66ab6fa.tar.xz |
Add transform() to Python Objects.
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') |