Shift+click the green flag for turbo mode (not recommended). Press the green flag to start. Click the computer speed button to change your computer speed (fast recommended). Click the next button to go to the next iteration.
algorithm for calculating the curve and the distance variable: sticku https://scratch.mit.edu/projects/16729980/#player Use turbo mode to speed up generation.