fill(220,0,0); text("elapsed time: "+ timer +" (s)",15,45); text("amplitude: "+ amplitude,400,45); if(timer*1000>= duration) { stop(); } } // we are done, clean up Ess
public void stop() { Ess.stop(); super.stop(); } void keyPressed() { if (key=='f') { if(mousePressed==true) { if (mouseButton==LEFT) frequency+=1000; else if(mouseButton==RIGHT) frequency-=1000; } } else if(key=='d') { if(mousePressed==true) { if (mouseButton==LEFT) duration+=1000; else if(mouseButton==RIGHT) duration-=1000; } } else if(key=='a') { if(mousePressed==true) { if (mouseButton==LEFT) amplitude+=10; else if(mouseButton==RIGHT) amplitude-=10; } }
}
Note: Ess library is needed for the code to work!!
this is my code so far , the problem is when I click a certain key (a,d,f) followed by mousePress in order to increment (amplitude,duration, frequency) It doesn't get incremeted by the value I specify ... It either go triple the value or double the value. I think it's due to the frameRate but I don't know how to fix it.
well what I'am trying to do today is a pixel tracking program , where I have a certain quicktime video being played.
I would like to select certain pixels in the video , and track those pixels as the video skips frames. I would like to know what is the best way ( or ) the easiest way to do this !!
Hello everyone , well I have been stuck on this for some time now !
so I have an arraylist that contains the path , it's an arrayList of points.
then I have to show the path ,
simply by point(pointFromArraylist.x,pointFromArrayList.y);
but then I have to show one circle as it moves from one point to another. so let's say it's
I just want to know how can I show the circle moving from one point to the other, while keeping the the path shown.
I tried using background(255) to clear. but that's just wrong (it clears everything) , and I want to know , how can i add a delay to see what's happening.!!