// Last edited on 2003-06-28 03:10:39 by stolfi
#include "colors.inc"

background { Gray80 }

camera {
  // location 1.0*< -3, -17, -9 >
  location 1.1*< 3, 20, -7 >
  right 1.2*x  up 0.9*y  sky -z
  look_at < 0.00, 0.00, 0.00 >
} 
 
light_source { 100*< +20, 15, -20 > color 1.2*White } 
light_source { 100*< -20, 10, -20 > color 0.8*White } 
light_source { 100*<  -5,  3, -20 > color 0.4*White } 

#declare A =
union {
text {
	ttf "arial.ttf"
	"A"
	0.15, 0
	scale <2,2,2>
	rotate <90,180,0>
	translate <4,-4,0>
}

difference {
	box {
		<0,0,0>,
		<10,7,4>
	}
	box {
		<-1,1,-1>,
		<9,6,3>
	}
	cylinder {
		<5,3.5,-1>,
		<5,3.5,5>,
		1
	}

	pigment {Red}
}
}


#declare B =
union {
text {
	ttf "arial.ttf"
	"B"
	0.15, 0
	scale <3,3,3>
	translate <8,2,-.25>
	rotate <0,180,0>
}
difference {
	box {
		<-11,1,0>,
		<-2,6,3>
		pigment {Yellow}
	}
	cylinder {
		<-6.5,3.5,-1>,
		<-6.5,3.5,4>,
		1
	}
}
}


#declare C =
union {
	text {
		ttf "arial.ttf"
		"C"
		0.15, 0
		scale <1.5,1.5,1.5>
		rotate <90,180,0>
		translate <4,-1,-11>
		pigment {Black}
	}
	cylinder {
		<5,3.5,-10.5>,
		<5,3.5,-5>,
		.9
	}
	sphere {
		<5,3.5,-10.5>,
		1.5
	}
	pigment { checker Blue, Cyan }
}


object {A}

#if (clock < 0.5)
object {B translate <22*clock,0,0>}

#else
object {B translate <11,0,0>}
object {C translate <0,0,9*clock> }

#end