Error when stopping p5 script with the clean button
When you try to stop a script in basthon with the clean button and it is running a p5 script in graphics windows, an error is thrown, because the function draw seems to be still executed while the background function does not exist anymore. Strange.
Trace of console with the p5 wave exemple on basthon.fr
Uncaught Error: Traceback (most recent call last):
File "/lib/python3.8/site-packages/p5/_global.py", line 174, in res
f(*args, **kwargs)
File "<input>", line 14, in draw
NameError: name 'background' is not defined