We are about to switch to a new forum software. Until then we have removed the registration on this forum.
For example I have a pixel with coordinates (0,0), and I translate it to (mouseX,mouseY), and rotate it to "rotAngle = atan2(mouseY - pmouseY, mouseX - pmouseX)".... So many transformations. How to find an actual coordinates of this pixel?
Answers
Use screenX() and screenY().
I'll try this, thanx
The problem is that I use Push/Pop Matrix, and the program thinks that my pixel is in the (0,0) coordinates, but after tranlsate and rotate it is not in the (0,0) coordinates. I want to compare my pixel color with another pixel color on the screen, and can't do this because I can't find the actual position of my pixel. "screenX" gives me the same unwanted result.
thanks