int callbackInterval = Math .min(10000,
Math.max(1, mutations / 100));
int nextCallback = 0;
Path x = generatePath(seed);
Path y;
Color c = null;
for (int i = 0; i < mutations; i++) {
if (--nextCallback <= 0) {
if (!monitor.notifyProgress(i, mutations)) {