summaryrefslogtreecommitdiffstats
path: root/share/extensions/color_moresaturation.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xshare/extensions/color_moresaturation.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/share/extensions/color_moresaturation.py b/share/extensions/color_moresaturation.py
new file mode 100755
index 0000000..6c5498b
--- /dev/null
+++ b/share/extensions/color_moresaturation.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+"""Increase satuation"""
+
+import inkex
+
+
+class MoreSaturation(inkex.ColorExtension):
+ """Increase saturation of selected objects"""
+
+ def modify_color(self, name, color):
+ color.saturation += int(0.05 * 255.0)
+ return color
+
+
+if __name__ == "__main__":
+ MoreSaturation().run()