Infinite loop when using image()

Thanks for the link.

Currently, I am getting a message stating that the server cannot be found. Although the problem could be temporary, it might be best if you post the code. That would enable us to copy it and run it locally. For doing that, we could use any image we have available that can be opened in p5.js.

EDIT (March 18, 2022):

The problem with the server was temporary.

The loop that you posted is not actually infinite. However, the repeated and rapid redisplaying of images may be triggering a protective mechanism on the server that issues a message about a possible infinite loop.

Try copying the code and all the images, and then run the script locally. What happens then?

1 Like