summaryrefslogtreecommitdiffstats
path: root/share/extensions/color_lesssaturation.py
blob: 924efd37c4cf1fee69b1edebc3f8875a9ab30207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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()