/* xStep=(xMax - xOrg)/xSize; yStep=(yMax - yOrg)/ySize; for(int i = 1; i < xSize+1; i++) { for(int j = 1; j < ySize+1; j++){ xPos = xOrg + i * xStep; yPos = yOrg + j * yStep; xIter = 0.0; yIter = 0.0; steps = 0; curColor=0; notDone=true; while(notDone) { Calculate(xPos, yPos, xIter, yIter); steps++; curColor++; if(curColor > 9){ curColor=0;} if( distance(xIter,yIter) >= 2.0){notDone=false;} if( steps == limit) {notDone=false;} } //end for while(notdone) if (steps < limit + 1){ if(curColor==0){current_color=Color.pink;} if(curColor==1){current_color=Color.black;} if(curColor==2){current_color=Color.blue;} if(curColor==3){current_color=Color.green;} if(curColor==4){current_color=Color.yellow;} if(curColor==5){current_color=Color.red;} if(curColor==6){current_color=Color.magenta;} if(curColor==7){current_color=Color.cyan;} if(curColor==8){current_color=Color.white;} if(curColor==9){current_color=Color.orange;} g.setColor(current_color); g.drawLine(i,j,i,j+10); } //end if step < limit } // end for j } // end for i */