Loading...
Logo
Processing Forum
alejanddro's Profile
1 Posts
1 Responses
0 Followers

Activity Trend

Last 30 days
Show:
Private Message

    Hello world!,

    the short explanation of my problem is that I want to be able to "calibrate" or introduce values in a Hashtable by clicking on an image and then using the color of those clicks to parse the rest of the pixels in the image. In order to do so, I need to make the program wait for the user to select (click on) those colors before running the rest of code.

    So far I have tried with if (frameCount == 1) and counting clicks in a for/while loop

    while(cliks<3){
           if(mousePressed) {      
                 ...
                clicks++;
          }

    but it does not work :(

    If you need a bit more context, it is torque/velocity graph on which the color of the background means the efficiency of a e-motor running. I intend to represent over the graph the previously recorded performance of a electrical vehicle in time.  I don't really need to calculate the efficiency graphically since it is also in the data...but I thought it could be a nice programming exercise :p

    Thanks!