diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-05-20 18:59:18 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-05-20 18:59:18 -0600 |
commit | 18b89c6edc29a009b1419e6d34bc3eef2dd911b9 (patch) | |
tree | 02f36651220fbd0821c94d6c13848bd9beb59098 /libdimension-python/tests | |
parent | 250b980002419746fc099c7633b9600a15afb1c6 (diff) | |
download | dimension-18b89c6edc29a009b1419e6d34bc3eef2dd911b9.tar.xz |
Switch to Blender model of filtered transparency.
Diffstat (limited to 'libdimension-python/tests')
-rwxr-xr-x | libdimension-python/tests/color.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libdimension-python/tests/color.py b/libdimension-python/tests/color.py index 72056d1..2d8545d 100755 --- a/libdimension-python/tests/color.py +++ b/libdimension-python/tests/color.py @@ -24,15 +24,15 @@ from dimension import * # Treat warnings as errors for tests dieOnWarnings(True) -c = Color(0, 0.5, 1, filter = 0.25, trans = 0.35) -assert repr(c) == 'dimension.Color(0.0, 0.5, 1.0, 0.25, 0.35)', repr(c) +c = Color(0, 0.5, 1, trans = 0.5, filter = 0.35) +assert repr(c) == 'dimension.Color(0.0, 0.5, 1.0, 0.5, 0.35)', repr(c) assert str(c) == '<red = 0.0, green = 0.5, blue = 1.0, \ -filter = 0.25, trans = 0.35>', str(c) +trans = 0.5, filter = 0.35>', str(c) assert c.red == 0, c.red assert c.green == 0.5, c.green assert c.blue == 1, c.blue -assert c.filter == 0.25, c.filter -assert c.trans == 0.35, c.trans +assert c.trans == 0.5, c.filter +assert c.filter == 0.35, c.trans c = Color(1, 0.5, 0) assert str(c) == '<red = 1.0, green = 0.5, blue = 0.0>', str(c) |