We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loadShape()
null
py5 encountered an error in your code: File "/home/villares/GitHub/sketch-a-day/2023/sketch_2023_09_23/sketch_2023_09_23.py", line 40, in draw 24 def draw(): (...) 36 elif isinstance(thumb, py5.Py5Image): 37 rw = thumb.width 38 func = py5.image 39 elif isinstance(thumb, py5.Py5Shape): --> 40 w, h = thumb.get_width(), thumb.get_height() 41 ratio = w / h .................................................. w = 64.0 h = 64.0 .................................................. AttributeError: 'NoneType' object has no attribute 'getWidth'
Originally posted by @villares in #352 (comment)
Somehow thumb._instance was None. The _load_py5shape decorator should check for this.
thumb._instance
None
_load_py5shape
The text was updated successfully, but these errors were encountered:
8d7697a
No branches or pull requests
Originally posted by @villares in #352 (comment)
Somehow
thumb._instance
wasNone
. The_load_py5shape
decorator should check for this.The text was updated successfully, but these errors were encountered: