summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/test_color_desaturate.py
blob: a49cf5c5c5755be00d8c167c8254ba398737c6e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"),
    ]