#version 3.7; #declare MaxIter = 10; #declare mandolin = function { pigment { mandel 30 // interior 0, 1 // exterior 1, 1 color_map{ [0 color rgb 0] [1 color rgb 1] } } } #declare mandel2 = function(x,y,z) { mandolin( (abs(z*z*6) + 1)*(x-0.5), (abs(z*z*6) + 1)*y , z).red * mandolin( (abs(x*x*6) + 1)*(z-0.5), (abs(x*x*6) + 1)*y , x).red * mandolin( (abs(y*z*6) + 1)*(z-0.5), (abs(y*y*6) + 1)*x , y).red } /* sphere { <0,0,0>, 1 pigment { color rgbt <0.8,0.2,0.2,0.77> } // finish { phong 0.5 reflection 0.55 metallic } translate <0.25, 0, 0> } */ isosurface { function { 0.95 - mandel2(x,y,z) } threshold 0 accuracy 0.0001 max_gradient 11828 // max_gradient 1500 all_intersections contained_by { sphere{ <0.25,0,0>,+1 } } pigment { onion color_map { [0.000 color rgb<1 , 1 , 1 > ] [0.125 color rgb<1 , 0 , 1 > ] [0.250 color rgb<1 , 0.3, 0.3> ] [0.375 color rgb<1 , 1 , 0.0> ] [0.667 color rgb<0.3, 1.0, 1.0> ] [1.000 color rgb<0.1, 0.1, 0.7> ] } phase +0.6 scale 0.5 // translate <0.25,0,0.25> } finish { phong 0.5 } rotate y*30 rotate -x*45 } /* plane { y,-1.2 pigment { checker color rgb 0.6 color rgb 0.44 scale 0.2} } */ light_source { <-33,33,-66> color 1 area_light <5,0,0>, <0,5,0>, 3,3 circular jitter orient adaptive 1 } camera { location <0,1, -1> * 0.75 look_at <0,0,0> angle 45 }