[gegl] tests: add a test case for weighted-blend



commit 5f780b130d126dd4e270f487804e726a71e6d0c9
Author: Téo Mazars <teo mazars ensimag fr>
Date:   Thu Oct 24 19:20:11 2013 +0200

    tests: add a test case for weighted-blend

 tests/compositions/Makefile.am                  |    1 +
 tests/compositions/reference/weighted-blend.png |  Bin 0 -> 224790 bytes
 tests/compositions/weighted-blend.xml           |   32 +++++++++++++++++++++++
 3 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index ee9817e..57bada5 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -42,6 +42,7 @@ TESTS = \
   softglow.xml                    \
   stretch-contrast.xml            \
   transform.xml                   \
+  weighted-blend.xml              \
   rectangles.xml
 
   #run-matting-global.xml.sh
diff --git a/tests/compositions/reference/weighted-blend.png b/tests/compositions/reference/weighted-blend.png
new file mode 100644
index 0000000..4c2eb72
Binary files /dev/null and b/tests/compositions/reference/weighted-blend.png differ
diff --git a/tests/compositions/weighted-blend.xml b/tests/compositions/weighted-blend.xml
new file mode 100644
index 0000000..c2c5f24
--- /dev/null
+++ b/tests/compositions/weighted-blend.xml
@@ -0,0 +1,32 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+  <node operation='gegl:weighted-blend'>
+    <node operation='gegl:crop'>
+      <params>
+       <param name='x'>0</param>
+       <param name='y'>0</param>
+       <param name='width'>200</param>
+       <param name='height'>200</param>
+      </params>
+    </node>
+    <node operation='gegl:color'>
+      <params>
+       <param name='value'>rgba(1.0, 0.0, 0.0, 0.5)</param>
+      </params>
+    </node>
+  </node>
+  <node operation='gegl:crop'>
+    <params>
+      <param name='x'>0</param>
+      <param name='y'>0</param>
+      <param name='width'>200</param>
+      <param name='height'>200</param>
+    </params>
+  </node>
+  <node operation='gegl:load'>
+    <params>
+      <param name='path'>data/car-stack.png</param>
+    </params>
+  </node>
+</gegl>
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]