Open PsychoticTomato opened 1 month ago
Thank you for submitting your first issue to p5py
I am curious to know the use case behind setting height or width to 0.
It's not a use case, it's a normal occurence when manually resizing the window with your cursor. Try resizing it in a way that minimizes one of the axes and the program crashes. Seems to happen because some of the screen update functions divide length by width or width by length. Having a minimum number of pixels for height/width would solve the issue.
Describe the bug When resizing the p5 program window to a state where either the height or the width are zero, the program crashes with a ZeroDivisionError.
To Reproduce This is my code:
Expected behavior The program keeps running for a second with the window turning black, then crashes.
Screenshots
System information: