[gegl] tests: Add test case for gegl:color
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests: Add test case for gegl:color
- Date: Mon, 14 Oct 2013 23:54:54 +0000 (UTC)
commit 6443f1c853f77e24102affd9cf4f0af5e5842796
Author: Daniel Sabo <DanielSabo gmail com>
Date: Sun Oct 13 19:15:50 2013 -0700
tests: Add test case for gegl:color
tests/compositions/Makefile.am | 1 +
tests/compositions/colors.xml | 504 +++++++++++++++++++++++++++++++
tests/compositions/reference/colors.png | Bin 0 -> 4002 bytes
3 files changed, 505 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 2c03727..d786ffa 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -33,6 +33,7 @@ TESTS = \
run-affine-with-negative.xml.sh \
run-checkerboard.xml.sh \
run-clones.xml.sh \
+ run-colors.xml.sh \
run-composite-transform.xml.sh \
run-edge-laplace.xml.sh \
run-edge-sobel.xml.sh \
diff --git a/tests/compositions/colors.xml b/tests/compositions/colors.xml
new file mode 100644
index 0000000..a46eaa5
--- /dev/null
+++ b/tests/compositions/colors.xml
@@ -0,0 +1,504 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>256</param>
+ <param name='y'>256</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(1.0000, 1.0000, 1.0000, 0.2000)</param>
+ <param name='format'>Y float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>192</param>
+ <param name='y'>256</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.0000, 0.6000, 0.0000, 0.8000)</param>
+ <param name='format'>Y float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>128</param>
+ <param name='y'>256</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.4000, 0.0000, 0.0000, 0.6000)</param>
+ <param name='format'>Y float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>64</param>
+ <param name='y'>256</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.0000, 0.0000, 0.8000, 0.4000)</param>
+ <param name='format'>Y float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>0</param>
+ <param name='y'>256</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgb(0.0000, 0.0000, 0.0000)</param>
+ <param name='format'>Y float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>256</param>
+ <param name='y'>192</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(1.0000, 1.0000, 1.0000, 0.2000)</param>
+ <param name='format'>YA float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>192</param>
+ <param name='y'>192</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.0000, 0.6000, 0.0000, 0.8000)</param>
+ <param name='format'>YA float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>128</param>
+ <param name='y'>192</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.4000, 0.0000, 0.0000, 0.6000)</param>
+ <param name='format'>YA float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>64</param>
+ <param name='y'>192</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.0000, 0.0000, 0.8000, 0.4000)</param>
+ <param name='format'>YA float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>0</param>
+ <param name='y'>192</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgb(0.0000, 0.0000, 0.0000)</param>
+ <param name='format'>YA float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>256</param>
+ <param name='y'>128</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(1.0000, 1.0000, 1.0000, 0.2000)</param>
+ <param name='format'>R'G'B' float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>192</param>
+ <param name='y'>128</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.0000, 0.6000, 0.0000, 0.8000)</param>
+ <param name='format'>R'G'B' float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>128</param>
+ <param name='y'>128</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.4000, 0.0000, 0.0000, 0.6000)</param>
+ <param name='format'>R'G'B' float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>64</param>
+ <param name='y'>128</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.0000, 0.0000, 0.8000, 0.4000)</param>
+ <param name='format'>R'G'B' float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>0</param>
+ <param name='y'>128</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgb(0.0000, 0.0000, 0.0000)</param>
+ <param name='format'>R'G'B' float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>256</param>
+ <param name='y'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(1.0000, 1.0000, 1.0000, 0.2000)</param>
+ <param name='format'>RGBA float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>192</param>
+ <param name='y'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.0000, 0.6000, 0.0000, 0.8000)</param>
+ <param name='format'>RGBA float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>128</param>
+ <param name='y'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.4000, 0.0000, 0.0000, 0.6000)</param>
+ <param name='format'>RGBA float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>64</param>
+ <param name='y'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgba(0.0000, 0.0000, 0.8000, 0.4000)</param>
+ <param name='format'>RGBA float</param>
+ </params>
+ </node>
+ </node>
+ <node operation='svg:src-over'>
+ <node operation='gegl:translate'>
+ <params>
+ <param name='origin-x'>0</param>
+ <param name='origin-y'>0</param>
+ <param name='sampler'>nearest</param>
+ <param name='x'>0</param>
+ <param name='y'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:color'>
+ <params>
+ <param name='value'>rgb(0.0000, 0.0000, 0.0000)</param>
+ <param name='format'>RGBA float</param>
+ </params>
+ </node>
+ </node>
+</gegl>
+
diff --git a/tests/compositions/reference/colors.png b/tests/compositions/reference/colors.png
new file mode 100644
index 0000000..a9f7246
Binary files /dev/null and b/tests/compositions/reference/colors.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]