-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
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
preload() not working as expected #132
Comments
Thanks for opening this issue @jvfe! Probably Another alternative would be to handle the |
Hey @jvfe, we have a pyp5js group in telegram to talk about the project among other subjects. If you want to join us there, feel free to send me a message over twitter, telegram or over here, and I can send you an invite. |
@jvfe if you want to tackle this one, this is probably because we're overwriting the To fix this we should probably:
|
For sure, I'll get to work right away, thank you for the guidance. Will open a PR as soon as I have something. |
So I was following one of the examples on the p5js reference for playing with images. I couldn't get the basic preload() to work:
I get an
'Uncaught TypeError: img is null'
on line 11, which probably means that the sketch is not loading the image in the first place.However the same doesn't happen if I load the image in setup():
Feel free to point out if I'm doing something wrong here, I'm not that familiar with p5js/processing yet.
The text was updated successfully, but these errors were encountered: