summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-09-18 17:02:26 -0400
committerTavian Barnes <tavianator@gmail.com>2011-09-18 17:02:26 -0400
commitd6aa225ca7990fde1eac09e28078e71b73d113ce (patch)
tree0e23549ee8ed93edd8f8bc9ff8c90af93fe21faa /dimension
parent126c9b7b4b2c5f43b7d86f821bf5b7a416836a7e (diff)
downloaddimension-d6aa225ca7990fde1eac09e28078e71b73d113ce.tar.xz
Fix --disable-png behaviour in the Python module.
Diffstat (limited to 'dimension')
-rw-r--r--dimension/tests/demo.dmnsn8
1 files changed, 7 insertions, 1 deletions
diff --git a/dimension/tests/demo.dmnsn b/dimension/tests/demo.dmnsn
index 040ae4f..3a04abc 100644
--- a/dimension/tests/demo.dmnsn
+++ b/dimension/tests/demo.dmnsn
@@ -23,10 +23,16 @@ camera = PerspectiveCamera(location = (0, 0.25, -4),
camera.rotate(53*Y)
# Background
+
+try:
+ image_map = ImageMap("../../libdimension/tests/png2.png").rotate(53*Y)
+except OSError:
+ image_map = Orange
+
background = PigmentMap(
pattern = Gradient(Y),
map = {
- 0: ImageMap("../../libdimension/tests/png2.png").rotate(53*Y),
+ 0: image_map,
0.35: Color(0, 0.1, 0.2, trans = 0.1, filter = 0.0),
},
)