Processing Forum
PImage d;
PImage c;
void setup () {
size(1000,760);
background(0);
}
void keyPressed()
{
if(key=='r'){
d = loadImage("lin.jpg");
image(d, 0, 0);
}
if(key=='s'){
c = loadImage("links.jpg");
image(c, 0, 0);
}
}
<APPLET CODE=“mysketch.class" WIDTH=1024 HEIGHT=760 archive=“mysketch.jar">
<param name="archive" value="mysketch.jar,itext.jar,pdf.jar,core.jar" />
<param name="mayscript" value="true" />
<param name="scriptable" value="true" />
<param name="image" value="loading.gif" />
<param name="boxmessage" value="Loading Processing software..." />
<param name="boxbgcolor" value="#FFFFFF" />
<H1>You should use a Java-enabled browser!</H1>