canvas doesn't load, no error thrown when invalid parameter passed to textWrap()
#6997
Closed
3 tasks done
Labels
textWrap()
#6997
Most appropriate sub-area of p5.js?
p5.js version
1.9.2
Web browser and version
Firefox 125.0.2
Operating system
Linux Ubuntu 22.04 LTS
Steps to reproduce this
Steps
textWrap()
insetup()
.Snippet
Notes
When I first tried to use
textWrap()
, I wrongly assumed it took the maximum width, in pixels, of the text before wrapping occurred, so I did something liketextWrap(width * 2 / 3);
. The canvas disappeared and no error was given. I believe I've seen this behavior before with other methods but I can't remember which ones.The text was updated successfully, but these errors were encountered: