From 18b89c6edc29a009b1419e6d34bc3eef2dd911b9 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 20 May 2011 18:59:18 -0600 Subject: Switch to Blender model of filtered transparency. --- libdimension-python/tests/color.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libdimension-python/tests') 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) == '', 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) == '', str(c) -- cgit v1.2.3