summaryrefslogtreecommitdiffstats
path: root/tests/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-22 13:19:09 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-22 13:19:09 -0400
commit68e39815977c406b8ec39ee3e2fe975087b66303 (patch)
tree3eb5f109af2c21edf15bd83a336ce6a3e8720615 /tests/libdimension
parent1208ac55766e410f7cac3ad9d6cf588e7846ca64 (diff)
downloaddimension-68e39815977c406b8ec39ee3e2fe975087b66303.tar.xz
Make colors less abstract.
Diffstat (limited to 'tests/libdimension')
-rw-r--r--tests/libdimension/render.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/libdimension/render.c b/tests/libdimension/render.c
index 44548d1..5b03423 100644
--- a/tests/libdimension/render.c
+++ b/tests/libdimension/render.c
@@ -73,8 +73,7 @@ dmnsn_new_test_scene(void)
dmnsn_pattern *sky_gradient = dmnsn_new_gradient_pattern(dmnsn_y);
dmnsn_map *sky_gradient_color_map = dmnsn_new_color_map();
dmnsn_add_map_entry(sky_gradient_color_map, 0.0, &dmnsn_orange);
- dmnsn_color background = dmnsn_color_from_sRGB((dmnsn_sRGB){ 0.0, 0.1, 0.2 });
- background.filter = 0.1;
+ dmnsn_color background = dmnsn_new_color5(0.0, 0.1, 0.2, 0.1, 0.0);
dmnsn_add_map_entry(sky_gradient_color_map, 0.35, &background);
dmnsn_pigment *sky_pigment
= dmnsn_new_color_map_pigment(sky_gradient, sky_gradient_color_map);
@@ -194,8 +193,7 @@ dmnsn_new_test_scene(void)
dmnsn_add_map_entry(checker_pigment_map, 1.0, &pigment2);
plane->texture->pigment
= dmnsn_new_pigment_map_pigment(checker2, checker_pigment_map);
- plane->texture->pigment->quick_color
- = dmnsn_color_from_sRGB((dmnsn_sRGB){ 1.0, 0.5, 0.75 });
+ plane->texture->pigment->quick_color = dmnsn_new_color(1.0, 0.5, 0.75);
dmnsn_array_push(scene->objects, &plane);
return scene;