From d6aa225ca7990fde1eac09e28078e71b73d113ce Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 18 Sep 2011 17:02:26 -0400 Subject: Fix --disable-png behaviour in the Python module. --- dimension/tests/demo.dmnsn | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'dimension') 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), }, ) -- cgit v1.2.3