Screen Translate() and Scale() problems
in
Programming Questions
•
11 months ago
Hello, I recently started working on a group project in Processing and I hit a wall when I came to scale and translate the screen with the mouse. Everything works perfectly (as I got the code on OpenProcessing), but when I tried to get the screen's width and height, plus the 0,0 coordinate, it didn't work at all. I created a rectangle to illustrate the area selected and came to the evidence that the rectangle was absolutely positioned on the plane I was translating and scaling. It became much smaller as I zoomed back and moved with all the rest as I moved the mouse.
I would like to know, is there any way to detect the border of the screen after all the scales and translations, and if not, is there any other way to move and scale the objects on the screen without using translate() and scale() ?
Thank you in advance. I will provide the code if you need it.
I would like to know, is there any way to detect the border of the screen after all the scales and translations, and if not, is there any other way to move and scale the objects on the screen without using translate() and scale() ?
Thank you in advance. I will provide the code if you need it.
1