diff options
Diffstat (limited to '')
-rw-r--r-- | share/extensions/tests/test_color_desaturate.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/share/extensions/tests/test_color_desaturate.py b/share/extensions/tests/test_color_desaturate.py new file mode 100644 index 0000000..a49cf5c --- /dev/null +++ b/share/extensions/tests/test_color_desaturate.py @@ -0,0 +1,26 @@ +# coding=utf-8 +from color_desaturate import Desaturate +from .test_inkex_extensions import ColorBaseCase + + +class ColorDesaturateTest(ColorBaseCase): + effect_class = Desaturate + color_tests = [ + ("none", "none"), + ((0, 0, 0), "#000000"), + ((255, 255, 255), "#ffffff"), + ((192, 192, 192), "#c0c0c0"), + ((128, 128, 128), "#808080"), + ((128, 0, 0), "#404040"), + ((255, 0, 0), "#7f7f7f"), + ((128, 128, 0), "#404040"), + ((255, 255, 0), "#7f7f7f"), + ((0, 128, 0), "#404040"), + ((0, 255, 0), "#7f7f7f"), + ((0, 128, 128), "#404040"), + ((0, 255, 255), "#7f7f7f"), + ((0, 0, 128), "#404040"), + ((0, 0, 255), "#7f7f7f"), + ((128, 0, 128), "#404040"), + ((255, 0, 255), "#7f7f7f"), + ] |