We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am currently working on an assignment for my school and I am running into a problem I can not seem to solve.
As this is a graded problem I would like to ask not to give me a solution but just to point out what could be causing this or if it's a known bug.
I am coding a program that needs to draw some content. The drawing is managed by a function that is invoked at the mouseClicked event.
Before the screen is drawn, the entire screen is refreshed within the called function using background(255).
The thing I am running into is that from time to time text content is placed on top of old content or lines are drawn towards the point that make up the starting point from where the text is drawn.
It does not produce this problem every time the program runs nor are any variables used that could effect the logic behind what is happening. Most annoying is that I can not seem to reproduce it myself. Going through the application the exact same way twice could one time produce this issue and the other time everything goes fine.
Any suggestions into what could be causing this would be great.