[gegl] tests: Add format parameter to checkerboard test



commit fbab72a13676b9f0e0b59b85fed522ef8f01dcde
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Mon Oct 14 16:10:48 2013 -0700

    tests: Add format parameter to checkerboard test

 tests/compositions/checkerboard.xml           |   35 +++++++++++++++++++++++++
 tests/compositions/reference/checkerboard.png |  Bin 4638 -> 8730 bytes
 2 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/checkerboard.xml b/tests/compositions/checkerboard.xml
index 3752c1a..48108be 100644
--- a/tests/compositions/checkerboard.xml
+++ b/tests/compositions/checkerboard.xml
@@ -1,5 +1,40 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <gegl>
+  <node operation='svg:src-over'>
+    <node operation='gegl:translate'>
+        <params>
+            <param name='x'>256.000000</param>
+        </params>
+    </node>
+    <node operation='gegl:crop'>
+        <params>
+            <param name='x'>-128.000000</param>
+            <param name='y'>-110.000000</param>
+            <param name='width'>256.000000</param>
+            <param name='height'>256.000000</param>
+        </params>
+    </node>
+    <node operation='gegl:over'>
+        <node operation='gegl:checkerboard'>
+            <params>
+                <param name='x-offset'>-2</param>
+                <param name='y-offset'>4</param>
+                <param name='color1'>rgba(0.0, 0.0, 0.0, 0.0)</param>
+                <param name='color2'>rgba(0.1, 0.1, 0.6, 0.5)</param>
+                <param name='format'>YA float</param>
+            </params>
+        </node>
+    </node>
+    <node operation='gegl:checkerboard'>
+        <params>
+            <param name='color1'>rgb(0.0, 0.0, 0.0)</param>
+            <param name='color2'>rgb(1.0, 1.0, 1.0)</param>
+            <param name='x'>32</param>
+            <param name='y'>32</param>
+            <param name='format'>YA float</param>
+        </params>
+    </node>
+  </node>
   <node operation='gegl:crop'>
       <params>
           <param name='x'>-128.000000</param>
diff --git a/tests/compositions/reference/checkerboard.png b/tests/compositions/reference/checkerboard.png
index f2d668b..30e406d 100644
Binary files a/tests/compositions/reference/checkerboard.png and 
b/tests/compositions/reference/checkerboard.png differ


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