processing - woodstockcs/support GitHub Wiki

I'm using an image in my Processing sketch. How do I make it show up when I display the sketch online?

Add the "preload directive" at the top of your pde file.

Examples:

/* @pjs preload="myimage.jpg"; */

/* @pjs preload="image1.jpg,image2.jpg,..."; */

reference