Banner
{ Deutsch | English }

coolstuff/minesweeper(lx).txt

//usual stuff #include "colors.inc" camera { location <5.1,1,-2> look_at <0,1,0> } light_source { < 2, 2, 2> White} light_source { < 2, 2,-2> White} light_source { < 2,-2, 2> White} light_source { < 2,-2,-2> White} light_source { <-2, 2, 2> White} light_source { <-2, 2,-2> White} light_source { <-2,-2, 2> White} light_source { <-2,-2,-2> White} //the white background #declare bg = union { plane { y, -200} plane { z, 200} plane { x, -200} pigment { color White} } //a coordinate system for a better orientation #declare cood = union { //y cylinder { <0,-5,0> <0,5,0> 0.005 pigment { color Blue} } //x cylinder { <-5,0,0> <5,0,0> 0.005 pigment { color Green} } //z cylinder { <0,0,-5> <0,0,5> 0.005 pigment { color Red} } } #declare mine = union { sphere { <0,0,0>,1 } sphere {<-1.3, 0, 0> ,0.35} sphere {< 1.3, 0, 0> ,0.35} sphere {< 0 ,-1.3, 0> ,0.35} sphere {< 0 , 1.3, 0> ,0.35} sphere {< 0 , 0,-1.3> ,0.35} sphere {< 0 , 0, 1.3> ,0.35} sphere {< (cos(0.85)) , (cos(0.85)), (cos(0.85))> ,0.2} sphere {< (cos(0.85)) , (cos(0.85)), -(cos(0.85))> ,0.2} sphere {< (cos(0.85)) , -(cos(0.85)), (cos(0.85))> ,0.2} sphere {< (cos(0.85)) , -(cos(0.85)), -(cos(0.85))> ,0.2} sphere {< -(cos(0.85)) , (cos(0.85)), (cos(0.85))> ,0.2} sphere {< -(cos(0.85)) , (cos(0.85)), -(cos(0.85))> ,0.2} sphere {< -(cos(0.85)) , -(cos(0.85)), (cos(0.85))> ,0.2} sphere {< -(cos(0.85)) , -(cos(0.85)), -(cos(0.85))> ,0.2} texture {pigment{rgb <0.1,0.1,0.1>} finish {phong 1} } } object {bg} object {mine}