How to integrate a js plugin into my p5.js sketch on openprocessing

Good morning (evening, etc.),

So, I have this sketch...

I spent many hours trying to figure out how to create a certain effect (magnify a specific area on the canvas--like a magnifying glass) and finally found a js plugin on Github that does exactly what I am envisioning. However, I am uncertain how to integrate the file into my sketch (I'm using openprocessing to build). Should I attach the file, or copy the code into a second tab? If I attach the file, do I preload it before setup? And, how do I call that code (and where--setup? draw?)?

Any guidance would be very much appreciated!

Tagged:
Sign In or Register to comment.