summaryrefslogtreecommitdiffstats
path: root/tests/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dimension')
-rw-r--r--tests/dimension/demo.pov13
-rwxr-xr-xtests/dimension/demo.sh41
2 files changed, 50 insertions, 4 deletions
diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov
index 544cd10..197fe23 100644
--- a/tests/dimension/demo.pov
+++ b/tests/dimension/demo.pov
@@ -81,7 +81,18 @@ union {
}
pigment {
- color rgb <1, 0, 0>
+ gradient y
+ color_map {
+ [0 color rgb <1, 0, 0>]
+ [1/6 color rgb <1, 0.5, 0>]
+ [2/6 color rgb <1, 1, 0>]
+ [3/6 color rgb <0, 1, 0>]
+ [4/6 color rgb <0, 0, 1>]
+ [5/6 color rgb <1, 0, 1>]
+ [1 color rgb <1, 0, 0>]
+ }
+ scale <1, 2.75, 1>
+ translate -1.25*y
}
rotate -45*x
}
diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh
index 05b01aa..c3d9750 100755
--- a/tests/dimension/demo.sh
+++ b/tests/dimension/demo.sh
@@ -95,9 +95,44 @@ demo_exp=$(echo -n \
object-modifiers))
(object-modifiers
(pigment
- (vector (integer 1) (integer 0) (integer 0)
- (integer 0) (integer 0))
- pigment-modifiers)
+ (pattern (gradient (vector (integer 0) (integer 1) (integer 0)
+ (integer 0) (integer 0))))
+ (pigment-modifiers
+ (color_map
+ (color_map-entry
+ (integer 0)
+ (vector (integer 1) (integer 0) (integer 0)
+ (integer 0) (integer 0)))
+ (color_map-entry
+ (float 0.166667)
+ (vector (integer 1) (float 0.5) (integer 0)
+ (integer 0) (integer 0)))
+ (color_map-entry
+ (float 0.333333)
+ (vector (integer 1) (integer 1) (integer 0)
+ (integer 0) (integer 0)))
+ (color_map-entry
+ (float 0.5)
+ (vector (integer 0) (integer 1) (integer 0)
+ (integer 0) (integer 0)))
+ (color_map-entry
+ (float 0.666667)
+ (vector (integer 0) (integer 0) (integer 1)
+ (integer 0) (integer 0)))
+ (color_map-entry
+ (float 0.833333)
+ (vector (integer 1) (integer 0) (integer 1)
+ (integer 0) (integer 0)))
+ (color_map-entry
+ (integer 1)
+ (vector (integer 1) (integer 0) (integer 0)
+ (integer 0) (integer 0))))
+ (transformation
+ (scale (vector (integer 1) (float 2.75) (integer 1)
+ (integer 0) (integer 0))))
+ (transformation
+ (translation (vector (float 0) (float -1.25) (float 0)
+ (float 0) (float 0))))))
(transformation
(rotation (vector (integer -45) (integer 0) (integer 0)
(integer 0) (integer 0))))))