[gegl] tests/compositions: add old gegl splash as composition test



commit 7596d3cab06f98703eb12ff686eb9c72376c6bf3
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri May 23 06:02:07 2014 +0200

    tests/compositions: add old gegl splash as composition test

 operations/external/vector-fill.c     |    5 +++--
 tests/compositions/Makefile.am        |    3 +--
 tests/compositions/gegl.xml           |   27 +++++++++++++++++++++++++++
 tests/compositions/reference/gegl.png |  Bin 0 -> 114794 bytes
 4 files changed, 31 insertions(+), 4 deletions(-)
---
diff --git a/operations/external/vector-fill.c b/operations/external/vector-fill.c
index 7384630..ee65883 100644
--- a/operations/external/vector-fill.c
+++ b/operations/external/vector-fill.c
@@ -248,8 +248,9 @@ gegl_op_class_init (GeglOpClass *klass)
     "<gegl>"
     "<node operation='gegl:fill-path'>"
     "  <params>"
-    "    <param name='d'>M30,4 C12,13 0,30 0,50 C0,78 23,100 50,100 C71,100 88,88 96,71"
-    "                    L56,71 C42,71 30,59 30,45 L30,4 z</param>"
+    "    <param name='d'>"
+    "M0,50 C0,78 24,100 50,100 C77,100 100,78 100,50 C100,45 99,40 98,35 C82,35 66,35 50,35 C42,35 35,42 
35,50 C35,58 42,65 50,65 C56,65 61,61 64,56 C67,51 75,55 73,60 C69,  69 60,75 50,75 C36,75 25,64 25,50 C25,36 
36,25 50,25 L93,25 C83,9 67,0 49,0 C25,0 0,20 0,50   z"
+    "                    </param>"
     "    <param name='color'>rgb(0.0, 0.6, 1.0)</param>"
     "  </params>"
     "</node>"
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 3f65bb4..e8b5fe5 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -12,8 +12,6 @@ SUBDIRS=data
 
 EXTRA_DIST=$(wildcard $(srcdir)/*.xml) $(wildcard $(srcdir)/reference/*) run-compositions.py
 
-# List of tests. The .sh suffix allows us to use $(wildcard $(srcdir)/*.xml) in
-# EXTRA_DISTS
 TESTS = \
   affine-with-negative.xml        \
   alien-map.xml                   \
@@ -29,6 +27,7 @@ TESTS = \
   edge-laplace.xml                \
   edge-sobel.xml                  \
   fattal02.xml                    \
+       gegl.xml                        \
   gamma.xml                       \
   hdr-color.xml                   \
   image-compare.xml               \
diff --git a/tests/compositions/gegl.xml b/tests/compositions/gegl.xml
new file mode 100644
index 0000000..17e29d8
--- /dev/null
+++ b/tests/compositions/gegl.xml
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='UTF-8'?> <gegl> 
+  <node operation='gegl:crop'> <params> <param name='x'>0</param> <param name='y'>0</param> <param 
name='width'>395</param> <param name='height'>200</param> </params> </node> 
+  
+  <node operation='gegl:over'> 
+    <node operation='gegl:translate'> <params> <param name='x'>80</param> <param name='y'>162</param> 
</params> </node> 
+    <node operation='gegl:opacity'> <params> <param name='value'>0.5</param> </params> </node> 
+    <node name='text' operation='gegl:text'> <params> <param name='string'>2000-2014 © Various 
contributors</param> <param name='font'>Sans</param> <param name='size'>12</param> <param 
name='color'>rgb(0.0000, 0.0000, 0.0000)</param> <param name='wrap'>628</param> <param 
name='alignment'>0</param> <param name='width'>622</param> <param name='height'>40</param> </params> </node> 
</node> 
+  <node operation='gegl:over'> 
+    <node operation='gegl:translate'> <params> <param name='x'>20</param> <param name='y'>50</param> 
</params> </node> 
+    
+    <node operation='gegl:over'> 
+      <node operation='gegl:translate'> <params> <param name='x'>0</param> <param name='y'>0</param> 
</params> </node> 
+      <node operation='gegl:dropshadow'> <params> <param name='opacity'>2.2</param> <param 
name='x'>0</param> <param name='y'>0</param> <param name='radius'>8</param> </params> </node> <gegl:fill-path 
d='M0,50 C0,78 24,100 50,100 C77,100 100,78 100,50 C100,45 99,40 98,35 C82,35 66,35 50,35 C42,35 35,42 35,50 
C35,58 42,65 50,65 C56,65 61,61 64,56 C67,51 75,55 73,60 C69,69 60,75 50,75 C36,75 25,64 25,50 C25,36 36,25 
50,25 L93,25 C83,9 67,0 49,0 C25,0 0,20 0,50 z' color='white'/> </node> 
+    <node operation='gegl:over'> 
+      <node operation='gegl:translate'> <params> <param name='x'>88</param> <param name='y'>0</param> 
</params> </node> 
+      <node operation='gegl:dropshadow'> <params> <param name='opacity'>1.2</param> <param 
name='x'>0</param> <param name='y'>0</param> <param name='radius'>8</param> </params> </node> 
+      <node operation='gegl:fill-path'> <params> <param name='d'>M50,0 C23,0 0,22 0,50 C0,77 22,100 50,100 
C68,100 85,90 93,75 L40,75 C35,75 35,65 40,65 L98,65 C100,55 100,45 98,35 L40,35 C35,35 35,25 40,25 L93,25 
C84,10 68,0 50,0 z</param> <param name='color'>rgb(1.0000, 1.0000, 1.0000)</param> </params> </node> </node> 
+    <node operation='gegl:over'> 
+      <node operation='gegl:translate'> <params> <param name='x'>176</param> <param name='y'>0</param> 
</params> </node> 
+      <node operation='gegl:dropshadow'> <params> <param name='opacity'>1.2</param> <param 
name='x'>0</param> <param name='y'>0</param> <param name='radius'>8</param> </params> </node> 
+      <node operation='gegl:fill-path'> <params> <param name='d'>M0,50 C0,78 24,100 50,100 C77,100 100,78 
100,50 C100,45 99,40 98,35 C82,35 66,35 50,35 C42,35 35,42 35,50 C35,58 42,65 50,65 C56,65 61,61 64,56 C67,51 
75,55 73,60 C69,69 60,75 50,75 C36,75 25,64 25,50 C25,36 36,25 50,25 L93,25 C83,9 67,0 49,0 C25,0 0,20 0,50 
z</param> <param name='color'>rgb(1.0000, 1.0000, 1.0000)</param> </params> </node> </node> 
+    <node operation='gegl:translate' x='264' y='0' />
+    <node operation='gegl:dropshadow' opacity='1.2' x='0' y='0' radius='8' />
+    <node operation='gegl:fill-path'> <params> <param name='d'>M30,4 C12,13 0,30 0,50 C0,78 23,100 50,100 
C71,100 88,88 96,71 L56,71 C42,71 30,59 30,45 L30,4 z</param> <param name='color'>rgb(1.0000, 1.0000, 
1.0000)</param> </params> </node> </node> 
+  <node operation='gegl:rotate' degrees='42' />
+  <node operation='gegl:checkerboard'> <params> <param name='x'>43</param> <param name='y'>44</param> <param 
name='x-offset'>0</param> <param name='y-offset'>0</param> <param name='color1'>rgb(0.7097, 0.7097, 
0.7097)</param> <param name='color2'>rgb(0.7661, 0.7661, 0.7661)</param> </params> </node>
+</gegl>
diff --git a/tests/compositions/reference/gegl.png b/tests/compositions/reference/gegl.png
new file mode 100644
index 0000000..8492cb9
Binary files /dev/null and b/tests/compositions/reference/gegl.png differ


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