private static void drawSink(Display d) 
	{
		int max = 10;
		int max_iter = 50;
/*		Complex t = new Complex(0,0);
		Color current = new Color(d,0,0,0);*/
		int X = WIDTH/2;
		int Y = HEIGHT/2;
		for (int y = -Y; y < Y; ++y)
		{
			for (int x = -X; x < X; ++x)
			{
				Complex z = new Complex (x*0.005,y*0.005);
				Complex c = new Complex(z.getRe()*0.001,z.getIm()*0.001);
				//Complex c = new Complex(z.getRe(),z.getIm());
				int n = 0;
				while ( (Math.pow(z.getRe(),2)+Math.pow(z.getIm(),2) < max) && (n < max_iter) )
				{
					Complex z1 = new Complex(z.getRe(), z.getIm());
					Complex c1 = new Complex(c.getRe(),c.getIm());
					
					z.setRe(Math.pow(z1.getRe(),2)-Math.pow(z1.getIm(),2) + c.getRe());
					z.setIm(2*z1.getRe()*z1.getIm()+c.getIm());
					c.setRe(c1.getRe()/2+z.getRe());
					c.setIm(c1.getIm()/2+z.getIm());
					n++;
				}
				
				if (n<max_iter)
				{
					int col = (n % max);
					//graph.setAlpha(n * 100);
					graph.setForeground(set_palette(d,col));
					graph.drawPoint(X+x,Y+y);
				}
				else 
				{
					graph.setForeground(set_palette(d,0));
					graph.drawPoint(X+x,Y+y);
				}
			}
		}

	}