summaryrefslogtreecommitdiffstats
path: root/share/extensions/color_removeblue.py
blob: ee64f0ec6481b97fc459c6a3d5c7e3cb1821dcac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
"""Extension to remove the blue colour from selected shapes"""

import inkex


class RemoveBlue(inkex.ColorExtension):
    """Remove blue color from selected objects"""

    def modify_color(self, name, color):
        return inkex.Color([color.red, color.green, 0])


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