Hello,
I am quite new to processing and need to figure out a way to write a small program which waits for a mouse button press and then draws a rectangle from the starting point at which the mouse button was pressed to the current location of the mouse. And when the button is released the rectangle needs to disappear.
I am completely lost with how to go about this.
There are some other elements required for the program but I want to figure out how to do those on my own.
Thanks for any help.
I am quite new to processing and need to figure out a way to write a small program which waits for a mouse button press and then draws a rectangle from the starting point at which the mouse button was pressed to the current location of the mouse. And when the button is released the rectangle needs to disappear.
I am completely lost with how to go about this.
There are some other elements required for the program but I want to figure out how to do those on my own.
Thanks for any help.
1