summaryrefslogtreecommitdiffstats
path: root/share/extensions/color_removeblue.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /share/extensions/color_removeblue.py
parentInitial commit. (diff)
downloadinkscape-upstream/1.2.2.tar.xz
inkscape-upstream/1.2.2.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/extensions/color_removeblue.py')
-rwxr-xr-xshare/extensions/color_removeblue.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/extensions/color_removeblue.py b/share/extensions/color_removeblue.py
new file mode 100755
index 0000000..ee64f0e
--- /dev/null
+++ b/share/extensions/color_removeblue.py
@@ -0,0 +1,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()