I am making a picture collage program. The user places pictures in a folder within the sketch folder and runs the sketch. A picture can then be selected within the program and resized, rotated, etc and placed, before choosing another picture. The current picture being manipulated moves wherever the mouse is moved (like the cursor) and is placed by left clicking. My challenge is that I have to redraw the entire background, including all previously placed images every frame otherwise the current picture will leave trails as it is moved. Is there a way to only temporarily draw an image over the background, so it doesn't remain in the next frame?
Thanks for your comments!
Ideas I am playing with:
Thanks for your comments!
Ideas I am playing with:
- Detect and redraw only the pictures that were covered by the current picture, (seems less than ideal)
- Capture only the part of the background that is behind the current picture and then redraw only that portion (this seems like the best work around at present).
1