I would like to create a text area for showing the output of the program, something like the console window. I dont want the previous text to be replaced, so the next output will be on the new line. Is there a way to create this? All the text area that I found cant be append.
I have simplified the code just to the problem that I encountered.
Basically I divide the area into 3 parts, according to the hand x-coordinate.
Then, if the hand are still in the same area, I don't want to repeatedly execute the same instruction, in this case is the count++.
But once it executed, it keep increasing, no matter where the hand is. It seems like even though the prevPos is equal to 1 it still execute the count++.
I would really appreciate if anyone can help me. I am sorry if it turns out a simple mistake, I am not an expert in Processing or programming in general.