function initParameters() {

	// BULB PARAMETERS : 
	// gravity constant, time, light intensity, pulsation of an approximate simple pendulum (small oscillations hypothesis), motion Ratio to decide
	// of the speed ratio with real life (motionRatio = 1) at max speed, shiftRatio to decide how strong the wire bends around its middle point, and roomSize
	g = 9.81
	t = 0
	lightIntensity = 2
	theta = view.theta0*Math.PI/180;
	length = view.length
	z0 = view.z0
	theorethicalPulse = Math.sqrt(g/length)
	motionRatio = 3
	w0 = theorethicalPulse*motionRatio
	shiftRatio = 1/10
	roomSize = 150

	// BOIDS MOTION PARAMETERS :
	// boids SpeedScale, number of boids, width of repartition of boids at t=0, surrounding distance, minimum distance to light, and continuityRatio, 
	// the proportion of old speed vector kept in the new one
	SpeedScale = 1
	numberOfBoids = 50
	boidSize = 0.4
	startWidth = 200
	surrounding_distance = 1.5
	minDistanceLight = 1.5
	continuityRatio = 0.7

	// CAMERA MOTION PARAMETERS : 
	// up camera motion boolean, period and pulsation of rotation, ellipse axe sizes, initial height, z(t) parameters, proportion of lookAt vectors (see updateCamera)
	goingUp = true
	T = 15
	omega = 2*Math.PI/(60*T)
	a = view.eye[0]
	b = 40
	z1 = view.eye[2]
	zcons = z1
	zstep = (z0-2*z1)/(60*T) 
	p = 1

	// TIME DILATATION PARAMETERS : 
	// alpha = the time dilatation incrementing time, oscillating from maxTimeDilatation to minTimeDilatation at pulse angular speed 
	// (pulse is defined such as it has a T/2 period and reaches minimum at T/4, thus when the camera is the closest to the bulb) with amp Amplitude with an additive
	// constant cons (defined such as its max is maxTimeDilatation, reached every even*T/4 time, and its min is minTimeDilatation, reached every odd*T/4 time)
	alpha = 1
	maxTimeDilatation = 1
	minTimeDilatation = 0.25
	pulse = 4*Math.PI/(60*T)
	amp = (maxTimeDilatation - minTimeDilatation)/2
	cons = maxTimeDilatation - amp

}
// INIT FUNCTION: I recommend you to play with the boid motion parameters, it is quite funny
INIT FUNCTION: I recommend you to play with the boid motion parameters, it is quite funny
INIT FUNCTION : I recommend you to play with the boid motion parameters it is quite funny
function initParameters() {
	g = 9.81
	t = 0
	lightIntensity = 2
	theta = view.theta0*Math.PI/180;
	length = view.length
	z0 = view.z0
	theorethicalPulse = Math.sqrt(g/length)
	motionRatio = 3
	w0 = theorethicalPulse*motionRatio
	shiftRatio = 1/10
	roomSize = 150
	SpeedScale = 1
	numberOfBoids = 50
	boidSize = 0.4
	startWidth = 200
	surrounding_distance = 1.5
	minDistanceLight = 1.5
	continuityRatio = 0.7
	goingUp = true
	T = 15
	omega = 2*Math.PI/(60*T)
	a = view.eye[0]
	b = 40
	z1 = view.eye[2]
	zcons = z1
	zstep = (z0-2*z1)/(60*T) 
	p = 1
	alpha = 1
	maxTimeDilatation = 1
	minTimeDilatation = 0.25
	pulse = 4*Math.PI/(60*T)
	amp = (maxTimeDilatation - minTimeDilatation)/2
	cons = maxTimeDilatation - amp
}
function initParameters ( ) { g = 9.81 t = 0 lightIntensity = 2 theta = view . theta0 * Math . PI / 180 ; length = view . length z0 = view . z0 theorethicalPulse = Math . sqrt ( g / length ) motionRatio = 3 w0 = theorethicalPulse * motionRatio shiftRatio = 1 / 10 roomSize = 150 SpeedScale = 1 numberOfBoids = 50 boidSize = 0.4 startWidth = 200 surrounding_distance = 1.5 minDistanceLight = 1.5 continuityRatio = 0.7 goingUp = true T = 15 omega = 2 * Math . PI / ( 60 * T ) a = view . eye [ 0 ] b = 40 z1 = view . eye [ 2 ] zcons = z1 zstep = ( z0 - 2 * z1 ) / ( 60 * T ) p = 1 alpha = 1 maxTimeDilatation = 1 minTimeDilatation = 0.25 pulse = 4 * Math . PI / ( 60 * T ) amp = ( maxTimeDilatation - minTimeDilatation ) / 2 cons = maxTimeDilatation - amp }
INIT FUNCTION: I recommend you to play with the boid motion parameters, it is quite funny
INIT FUNCTION : I recommend you to play with the boid motion parameters it is quite funny
// BULB PARAMETERS :  // gravity constant, time, light intensity, pulsation of an approximate simple pendulum (small oscillations hypothesis), motion Ratio to decide // of the speed ratio with real life (motionRatio = 1) at max speed, shiftRatio to decide how strong the wire bends around its middle point, and roomSize // BOIDS MOTION PARAMETERS : // boids SpeedScale, number of boids, width of repartition of boids at t=0, surrounding distance, minimum distance to light, and continuityRatio,  // the proportion of old speed vector kept in the new one // CAMERA MOTION PARAMETERS :  // up camera motion boolean, period and pulsation of rotation, ellipse axe sizes, initial height, z(t) parameters, proportion of lookAt vectors (see updateCamera) // TIME DILATATION PARAMETERS :  // alpha = the time dilatation incrementing time, oscillating from maxTimeDilatation to minTimeDilatation at pulse angular speed  // (pulse is defined such as it has a T/2 period and reaches minimum at T/4, thus when the camera is the closest to the bulb) with amp Amplitude with an additive // constant cons (defined such as its max is maxTimeDilatation, reached every even*T/4 time, and its min is minTimeDilatation, reached every odd*T/4 time)