summaryrefslogtreecommitdiffstats
path: root/share/extensions/color_custom.inx
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_custom.inx
parentInitial commit. (diff)
downloadinkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz
inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.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_custom.inx')
-rw-r--r--share/extensions/color_custom.inx36
1 files changed, 36 insertions, 0 deletions
diff --git a/share/extensions/color_custom.inx b/share/extensions/color_custom.inx
new file mode 100644
index 0000000..77328a6
--- /dev/null
+++ b/share/extensions/color_custom.inx
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>Custom</name>
+ <id>org.inkscape.color.custom</id>
+ <param name="tab" type="notebook">
+ <page name="Options" gui-text="Options">
+ <param name="r" type="string" gui-text="Red Function:">r</param>
+ <param name="g" type="string" gui-text="Green Function:">g</param>
+ <param name="b" type="string" gui-text="Blue Function:">b</param>
+ <param name="scale" type="optiongroup" appearance="radio" gui-text="Input (r,g,b) Color Range:">
+ <option value="1">0 - 1</option>
+ <option value="255">0 - 255</option>
+ </param>
+ </page>
+ <page name="Help" gui-text="Help">
+ <label xml:space="preserve">
+Allows you to evaluate different functions for each channel.
+r, g and b are the normalized values of the red, green and blue channels. The resulting RGB values are automatically clamped.
+
+Example (half the red, swap green and blue):
+ Red Function: r*0.5
+ Green Function: b
+ Blue Function: g
+ </label>
+ </page>
+ </param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Color"/>
+ </effects-menu>
+ </effect>
+ <script>
+ <command location="inx" interpreter="python">color_custom.py</command>
+ </script>
+</inkscape-extension>