The first problem is a common one :
you shouldnt put loadImage in the draw method cause then you load it every frame, that slows down your programm a lot.
so it should look like this :
Code:PImage b;
PImage c;
void setup(){
size(1000,660);
background(255);
frameRate(40);
b = loadImage("fish.gif");
c = loadImage("underwater.jpg");
for(int i=0; i<anzahl; i++){
oldX[i] = 0;
oldY[i] = 0;
}
}
int anzahl=30;
float[] oldX = new float[anzahl];
float[] oldY = new float[anzahl];
void draw(){
float[] tmpX = new float[anzahl];
float[] tmpY = new float[anzahl];
for(int i=0; i<anzahl-1; i++){
tmpX[i+1] = oldX[i];
tmpY[i+1] = oldY[i];
}
tmpX[0]=mouseX;
tmpY[0]=mouseY;
oldX=tmpX;
oldY=tmpY;
background(c);
for(int i=0; i<anzahl; i++){
fill(200,250,0);
image(b,oldX[i],oldY[i],70,70);
}
}
To use transparency just use a transparent gif like this one for example : http://www.aperfectworld.org/clipart/cartoons/fish.gif
or use PNG with transparency if you want smooth edges.
Or like you mentioned a SVG file.
For sound playback you should take a look at the sound libraries,
http://processing.org/reference/libraries/#sound
i havent worked with any of them but it looks like Sonia would do the job : http://sonia.pitaru.com/
Shouldnt be to hard to play a sound at the first touch and then everytime she changes the shape or color. so that it says "red" or "fish" when she changes the brush. If you have Problems, let me know