summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-08 16:10:40 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-08 16:10:40 -0500
commita76d4f1fb96633e7f348ba6aa0c14b726e15e28e (patch)
treeaae8f28d884e7beca4441524c3a981c8340fde4f /tests
parent1ae277f2094a21d93b1460bf466ff657201310c2 (diff)
downloaddimension-a76d4f1fb96633e7f348ba6aa0c14b726e15e28e.tar.xz
Add quick_color to pigments.
Diffstat (limited to 'tests')
-rw-r--r--tests/dimension/demo.pov1
-rwxr-xr-xtests/dimension/demo.sh3
-rw-r--r--tests/libdimension/render.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov
index 197fe23..0740ecb 100644
--- a/tests/dimension/demo.pov
+++ b/tests/dimension/demo.pov
@@ -123,5 +123,6 @@ plane {
y, -2
pigment {
checker color rgb 0, color rgb 1
+ quick_color rgb <1, 0.5, 0.75>
}
}
diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh
index 4e0c206..4e26bdc 100755
--- a/tests/dimension/demo.sh
+++ b/tests/dimension/demo.sh
@@ -171,6 +171,9 @@ demo_exp=$(echo -n \
(pigment
(pattern checker)
(pigment-modifiers
+ (quick_color
+ (vector (integer 1) (float 0.5) (float 0.75)
+ (integer 0) (integer 0)))
(color-list
(vector (integer 0) (integer 0) (integer 0)
(integer 0) (integer 0))
diff --git a/tests/libdimension/render.c b/tests/libdimension/render.c
index 4f8f23e..1de9fba 100644
--- a/tests/libdimension/render.c
+++ b/tests/libdimension/render.c
@@ -174,6 +174,8 @@ dmnsn_new_test_scene(void)
dmnsn_add_color_map_entry(checker_color_map, 1.0, dmnsn_white);
plane->texture->pigment
= dmnsn_new_color_map_pigment(checker, checker_color_map);
+ plane->texture->pigment->quick_color
+ = dmnsn_color_from_sRGB((dmnsn_sRGB){ 1.0, 0.5, 0.75 });
dmnsn_array_push(scene->objects, &plane);
return scene;