Thanks for all the suggestions on getting the latest version of the code. When I read there was some tool that help manage the source I guessed that it was not available on a Mac. I kept downloading things until I found a tar.gz file that decompressed into xfractint-20.04p9 so I think I now have the latest source. I don't care which platform it is for since I am only using it to figure out algorithms. Unfortunately, this code looks exactly the same in the area I am having a problem with.

I have been trying to figure out how outside=tdis works. The documentation is vague on outside=tdis and trying to guess the algorithm by comparing images has proven futile. I looked in detail at the code in calcfrac.c and this is what I see. It looks very simple. I pasted together the relevant parts so it is easy to see all together.

version xfractint-20.04p09 calcfrac.c line numbers

double totaldist = 0.0; // Line 1780

// Initialization
if (outside == TDIS) {  // Line 1892
   lastz.x = old.x;
   lastz.y = old.y;
 }

// Main loop
if (outside == TDIS) // Line 2087
{
    totaldist += sqrt(sqr(lastz.x-new.x)+sqr(lastz.y-new.y));
    lastz.x = new.x;
    lastz.y = new.y;
}

// After main loop. Color methods
else if (outside == TDIS) { // Line 2328
     coloriter = (long)(totaldist);
}

I don't think I implemented anything wrong here. The image I get has a color index that changes much faster than the correct image. Its not off by a fixed number or a ratio or any other good clue as to what is wrong. I was hoping someone here might have an idea of something outside this code that could affect the results. If not, no worries, I will just keep looking.

Thanks again for the help. Maybe I will be able to return the favor sometime.

Mike Frazier
www.fracton.org