summaryrefslogtreecommitdiffstats
path: root/share/extensions/color_lesssaturation.py
blob: e19b2979e005fcee1996c222abe3a1f4550657fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
"""Reduce saturation"""

import inkex


class LessSaturation(inkex.ColorExtension):
    """Make colours less saturated"""

    def modify_color(self, name, color):
        color.saturation -= int(0.05 * 255)
        return color


if __name__ == "__main__":
    LessSaturation().run()