Hi,
I’m having some serious trouble trying to implement this idea that when the mouse is clicked a circle slowly expands from that point. It then resets and re-expands when clicked at another point on screen.
I’m sure it has less to do with openframeworks and more to do with time functions but i’m really struggling to understand how the work and measure durations.
Any help is greatly appreciated.
Thes sinus function varies from -1 to 1, as long as the input parameter goes from 0 to 2*PI radians or 360 degrees. We just want to get half of the cicle from 0 to 180. Then as we are incrementing in degrees we must translate it to radians for the sinus function.
Change the position and reset tetha qhen mosue clicked
void testApp::mousePressed(int x, int y, int button){
tetha=0;
xPos=x;
yPos=y;
}