 	return iteration;
 }
 
+// escape-time algorithm for Mandelbrot set
 float mandelbrot(vec2 p){
 	float x=p.x;
 	float y=p.y;

	return 0.0;
}

float juliaset(vec2 p){
	if(mode == 0)p *= 1.3;


	return 1.0;
}

// calculates how to color the pixel given the mandelbrot and julia itterations
vec4 color(float mandel, float julia){
	return vec4(julia*2.0, julia/2.0+mandel/2.0, mandel*2.0, 1.0);
}
