From 275c2542c4e414ffe01558cfca2445dcad6bbd29 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 28 Jul 2011 12:47:10 -0600 Subject: Remove color_maps. --- dimension/tests/demo.dmnsn | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'dimension/tests') 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 . # ######################################################################### -# 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), - }, - ), - ] -) -- cgit v1.2.3