#include "colors.inc" #include "shapes.inc" #include "textures.inc" #declare White = rgb <1,1,1>; box { <-2.1, -4, -4>, < -1.9, 5, -3.9> //6 units away from camera, ht= 8, width=0.2 [RGB] {gap = 2 unit} finish { ambient 1.0 } pigment { Blue } } box { <-0.1, -4, -4>, < 0.1, 5, -3.9> //rotate <0, -20, 0> finish { ambient 1.0 } pigment { Green } } box { <1.9, -4, -4>, < 2.1, 5, -3.9> finish { ambient 1.0 } pigment { Red } } box { <-1.65, -10, 5>, < -1.35, 10, 5.1> //15 units away from camera, ht= 20, width=0.3 [CMY] {gap = 3 unit} rotate <0, 0, 90> finish { ambient 1.0 } pigment { Yellow } } box { <1.35, -10, 5>, < 1.65, 10, 5.1> rotate <0, 0, 90> finish { ambient 1.0 } pigment { Magenta } } box { <4.35, -10, 5>, < 4.65, 10, 5.1> rotate <0, 0, 90> finish { ambient 1.0 } pigment { Cyan } } plane { z, 5.1 pigment { White } } //light_source { <5, 30, -30> color White } //light_source { <-5, 30, -30> color White } camera { location <0.0, 1.0, -10.0> //direction <0,0,1> //focal length = 1 unit (?) look_at <0.0, 1.0, 0.0> focal_point < 1.5, 0, 5> // magenta bar in focus //focal_point < 2, 0.5, -4> // red bar in focus // aperture 0.05 // almost everything is in focus aperture 1 // testing // blur_samples 4 // fewer samples, faster to render blur_samples 500 // more samples, higher quality image // variance 0.0 // to remove graininess }