//Ive been working on this for awhile now but couldnt get what excatly what //I wanted it to do. My whole idea is too as you make shapes you make sounds. Depending //on what shapes and lines you make the different sounds it makes. And the sounds keep //playing. //If I ever got that to work I would want to put this on my nintendo DS. Having a //kind of sound studio would be interesting able to carry around in your own pocket. //This is sort of a fantasy project but not really. It is something that I wanted it to //turn out into but didnt quite happen that way. int currentFrame = 0; PImage[] frames = new PImage[12]; int lastTime = 0; void setup() { size(400, 400); strokeWeight(1); smooth(); background(45,25,150); for (int i = 0; i < frames.length; i++) { frames[i] = get(); // Create a blank frame } } void draw() { int currentTime = millis(); if (currentTime > lastTime+100) { nextFrame(); lastTime = currentTime; } if (mousePressed == true) { line(pmouseX, pmouseY, mouseX, mouseY); } } void nextFrame() { frames[currentFrame] = get(); currentFrame++; if (currentFrame >= frames.length) { currentFrame = 0; } image(frames[currentFrame], 0, 0); }