You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I want to trigger my own function for setup and drawing.
however this does not seem to work as my code below crashed at File ".venv/lib/python3.11/site-packages/p5/sketch/userspace.py", line 260, in size p5.sketch.size = (builtins.width, builtins.height) AttributeError: 'NoneType' object has no attribute 'size'
It seems that on this size() there is no sketch attribute to p5, but I have tried digging into but cant seem to understand why that is the case ?
Describe the bug
I want to trigger my own function for setup and drawing.
however this does not seem to work as my code below crashed at
File ".venv/lib/python3.11/site-packages/p5/sketch/userspace.py", line 260, in size p5.sketch.size = (builtins.width, builtins.height) AttributeError: 'NoneType' object has no attribute 'size'
It seems that on this
size()
there is no sketch attribute to p5, but I have tried digging into but cant seem to understand why that is the case ?To Reproduce
Expected behavior
To be able to draw using custom defined function.
System information:
The text was updated successfully, but these errors were encountered: