#include "colors.inc"

#declare LOOPS = 1.6;

background { color Black }

camera
{
	location <sin(clock*2*LOOPS*pi)*(2.0-4*(clock-0.5)*(clock-0.5)), cos(clock*2*LOOPS*pi)*(2.6-4*(clock-0.5)*(clock-0.5)), 0.7>
//	location <2.4, 3, 0.7>
	look_at <0, 0, 0>
}

light_source
{
	<2, -3, -1>
	color Gray50
	shadowless
}

light_source
{
	<-2, 3, 2> //-3*(clock-0.5)>
	color White
}

object {
	julia_fractal {
		<-0.083,0.0,-0.83,-0.025>
		slice <0,0,0,1>,(clock-0.5)*1.95
		quaternion
		sqr
		max_iteration 15
		precision 20
	}
	scale <1,1,1>
	finish { ambient 0.15 }
	pigment { color Yellow } 
//	translate <0,0,0>
}
/*
plane { y, 0
	pigment {
		checker colour Red colour White
		scale 2
	}
	finish {
		ambient 0.2
		diffuse 0.8
	}
	translate <0,-1,0>
}
*/

box {
	<-3, -3, -3>,	// Near lower left corner
	<3, 3, 3>	// Far upper right corner
	pigment {
		checker colour Red colour White
		scale 0.5
	}
	finish {
		ambient 0.1
		diffuse 0.8
	}
	hollow
	no_shadow
}

