a=-0.7;b=-0.4 # Complex parameter, connected to coordinate of the Mandelbrot set in a complex plane. Constants here. Limits=c(-2,2) MaxIter=60 cl=colours() Step=seq(Limits[1],Limits[2],by=0.01) PointsMatrix=array(0,dim=c(length(Step)*length(Step),3)) a1=0 plot(0,0,xlim=Limits,ylim=Limits,col="white") for(x in Step) { for(y in Step) { n=0 DIST=0 x1=x;y1=y # Original x and y are saved. while(n