summaryrefslogtreecommitdiffstats
path: root/share/extensions/param_curves.inx
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:29:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:29:01 +0000
commit35a96bde514a8897f6f0fcc41c5833bf63df2e2a (patch)
tree657d15a03cc46bd099fc2c6546a7a4ad43815d9f /share/extensions/param_curves.inx
parentInitial commit. (diff)
downloadinkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.tar.xz
inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.zip
Adding upstream version 1.0.2.upstream/1.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/extensions/param_curves.inx')
-rw-r--r--share/extensions/param_curves.inx47
1 files changed, 47 insertions, 0 deletions
diff --git a/share/extensions/param_curves.inx b/share/extensions/param_curves.inx
new file mode 100644
index 0000000..d7a51c5
--- /dev/null
+++ b/share/extensions/param_curves.inx
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>Parametric Curves</name>
+ <id>org.inkscape.effect.param_curves</id>
+ <param name="tab" type="notebook">
+ <page name="sampling" gui-text="Range and Sampling">
+ <param name="t_start" type="float" min="-1000.0" max="1000.0" gui-text="Start t-value:">0.0</param>
+ <param name="t_end" type="float" min="-1000.0" max="1000.0" gui-text="End t-value:">1.0</param>
+ <param name="times2pi" type="bool" gui-text="Multiply t-range by 2*pi">true</param>
+ <param name="xleft" type="float" min="-1000.0" max="1000.0" gui-text="X-value of rectangle's left:">-1.0</param>
+ <param name="xright" type="float" min="-1000.0" max="1000.0" gui-text="X-value of rectangle's right:">1.0</param>
+ <param name="ybottom" type="float" min="-1000.0" max="1000.0" gui-text="Y-value of rectangle's bottom:">-1.0</param>
+ <param name="ytop" type="float" min="-1000.0" max="1000.0" gui-text="Y-value of rectangle's top:">1.0</param>
+ <param name="samples" type="int" min="2" max="1000" gui-text="Samples:">30</param>
+ <param name="isoscale" type="bool" gui-text="Isotropic scaling">false</param>
+ <label>When set, Isotropic scaling uses smallest of width/xrange or height/yrange</label>
+ </page>
+ <page name="use" gui-text="Use">
+ <label xml:space="preserve">Select a rectangle before calling the extension, it will determine X and Y scales.
+First derivatives are always determined numerically.</label>
+ </page>
+ <page name="desc" gui-text="Functions">
+ <label xml:space="preserve">Standard Python math functions are available:
+
+ceil(x); fabs(x); floor(x); fmod(x,y); frexp(x); ldexp(x,i);
+modf(x); exp(x); log(x [, base]); log10(x); pow(x,y); sqrt(x);
+acos(x); asin(x); atan(x); atan2(y,x); hypot(x,y);
+cos(x); sin(x); tan(x); degrees(x); radians(x);
+cosh(x); sinh(x); tanh(x).
+
+The constants pi and e are also available.</label>
+ </page>
+ </param>
+ <param name="fofx" type="string" gui-text="X-Function:">cos(3*t)</param>
+ <param name="fofy" type="string" gui-text="Y-Function:">sin(5*t)</param>
+ <param name="remove" type="bool" gui-text="Remove rectangle">true</param>
+ <param name="drawaxis" type="bool" gui-text="Draw Axes">false</param>
+ <effect>
+ <object-type>rect</object-type>
+ <effects-menu>
+ <submenu name="Render"/>
+ </effects-menu>
+ </effect>
+ <script>
+ <command location="inx" interpreter="python">param_curves.py</command>
+ </script>
+</inkscape-extension>