summaryrefslogtreecommitdiffstats
path: root/libdimension-python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension-python/tests')
-rwxr-xr-xlibdimension-python/tests/demo.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/libdimension-python/tests/demo.py b/libdimension-python/tests/demo.py
index d290a7f..2110606 100755
--- a/libdimension-python/tests/demo.py
+++ b/libdimension-python/tests/demo.py
@@ -49,12 +49,11 @@ scene = Scene(canvas = canvas,
objects = objects,
lights = lights,
camera = camera)
-scene.default_texture = Texture(finish = Ambient(sRGB(0.1))
- + Diffuse(sRGB(0.7)))
+scene.default_texture = Texture(finish = Ambient(sRGB(0.1)) + Diffuse(sRGB(0.7)))
scene.background = background
scene.adc_bailout = 1/255
scene.recursion_limit = 5
-scene.ray_trace()
+scene.render()
if have_PNG:
canvas.write_PNG("demo.png")