
Graphimation{

	noOfGeometries 1
	Fader Rectangle{ x 0 y 0 w 800 h 600 hitTest 0 }
	
	noOfBrushes 1
	Black SolidColorBrush{ Color{ 0 0 0 1 } opacity $fade }

	noOfImages 0

	noOfTransforms 0

	noOfChildGxms 2
	RectTunnel Graphimation{ data/chaos/rectTunnelFlyBy.d2g noOfArgs 0 }
	RingTunnel Graphimation{ data/chaos/tunnelFlyBy.d2g noOfArgs 0 }

	noOfExecutables 2
	Ring Procedure{
		noOfCommands 2
		RenderGxm{ RingTunnel }
		Fill{ Fader Black }
	}
	Rect Procedure{
		noOfCommands 2
		RenderGxm{ RectTunnel }
		Fill{ Fader Black }
	}

	noOfControllers 2
	CRing Const{ target null begin 0 end 10000 loops 0 value 0 noOfChildren 4
		Trigger{ begin 100 targetGxm RingTunnel targetAnimation MainAnim noOfChildren 0 } 
		Linear{ target $fade begin 0 end 1000 loops 0 beginValue 1 endValue 0 noOfChildren 0 }
		Const{ target $fade begin 1000 end 9000 loops 0 value 0 noOfChildren 0 }
		Linear{ target $fade begin 9000 end 10000 loops 0 beginValue 0 endValue 1 noOfChildren 0 }
	}
	CRect Const{ target null begin 0 end 16000 loops 0 value 0 noOfChildren 4
		Trigger{ begin 100 targetGxm RectTunnel targetAnimation MainAnim noOfChildren 0 } 
		Linear{ target $fade begin 0 end 1000 loops 0 beginValue 1 endValue 0 noOfChildren 0 }
		Const{ target $fade begin 1000 end 15000 loops 0 value 0 noOfChildren 0 }
		Linear{ target $fade begin 15000 end 16000 loops 0 beginValue 0 endValue 1 noOfChildren 0 }
	}

	noOfAnimations 2
	MainAnim Animation{
		renderFunction Ring
		controller CRing
		transitionTarget RingAnim
	}
	RingAnim Animation{
		renderFunction Rect
		controller CRect
		transitionTarget MainAnim
	}

}