Progress bar from inside draw()

Good question kll! I’m rendering fractals at 4K x 4K pixels, iterating on each pixel up to 500 times using functions from the [Apache complex library](https://commons.apache.org/proper/commons-math/userguide/complex.html. So it’s common to have a single draw() taking up to 5 minutes. The program renders previews at 512x512 in real time, and then when it’s time to render one you like, you press the Render button and go and have a cup of tea. So that’s where the progress bar comes in. Example attached.

3 Likes