summaryrefslogtreecommitdiffstats
path: root/dimension/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-07-28 12:47:10 -0600
committerTavian Barnes <tavianator@gmail.com>2011-07-28 12:47:10 -0600
commit275c2542c4e414ffe01558cfca2445dcad6bbd29 (patch)
tree62ef619a9e9577386f7805f7799784a2c03dcb0c /dimension/tests
parent2c6692e1fb0687ddd2898220286c7a3c7e8b6850 (diff)
downloaddimension-275c2542c4e414ffe01558cfca2445dcad6bbd29.tar.xz
Remove color_maps.
Diffstat (limited to 'dimension/tests')
-rw-r--r--dimension/tests/demo.dmnsn36
1 files changed, 18 insertions, 18 deletions
diff --git a/dimension/tests/demo.dmnsn b/dimension/tests/demo.dmnsn
index 550c57a..f20be39 100644
--- a/dimension/tests/demo.dmnsn
+++ b/dimension/tests/demo.dmnsn
@@ -17,14 +17,27 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
#########################################################################
-# Background
-background = Clear
-
# Camera
camera = PerspectiveCamera(location = (0, 0.25, -4),
look_at = 0)
camera.transform(rotate(53*Y))
+# Background
+background = Clear
+
+# Sky sphere
+sky_sphere = SkySphere(
+ [
+ PigmentMap(
+ pattern = Gradient(Y),
+ map = {
+ 0: Orange,
+ 0.35: Color(0, 0.1, 0.2, trans = 0.1, filter = 0.0),
+ },
+ ),
+ ]
+)
+
# Lights
lights = [
PointLight(location = (-15, 20, 10), color = White),
@@ -66,7 +79,7 @@ arrow = Union(
open = True
),
],
- pigment = ColorMap(
+ pigment = PigmentMap(
Gradient(Y),
{
0/6: Red,
@@ -125,7 +138,7 @@ ground = Plane(
Checker(),
[
White,
- ColorMap(Checker(), [Black, White]).transform(scale(1/3))
+ PigmentMap(Checker(), [Black, White]).transform(scale(1/3))
],
),
)
@@ -136,16 +149,3 @@ objects = [
strip,
ground,
]
-
-# Sky sphere
-sky_sphere = SkySphere(
- [
- ColorMap(
- pattern = Gradient(Y),
- map = {
- 0: Orange,
- 0.35: Color(0, 0.1, 0.2, trans = 0.1, filter = 0.0),
- },
- ),
- ]
-)