Load image on setup

16 views
Skip to first unread message

Samuel Simplicio

unread,
Jul 10, 2022, 6:03:46 AM7/10/22
to clj-processing
When using q/load-image you need to use the "loaded?" function on the "draw" function to check if the image was loaded. I want to know if it is possible to wait during the "setup" function for the image to be loaded.The reason is that I want to do some computations on the image pixels and apply some filters before I start drawing it and doing it every frame would be slow and unnecessary.

Thanks,
Samuel
Reply all
Reply to author
Forward
0 new messages