PGraphicsOpenGL - screenY bug?
in
Core Library Questions
•
1 year ago
Hi,
I'm trying to port my Processing 1.5.1 project to new Processing 2.0a4. I found an error while calling the screenY method of PGraphicsOpenGL.
This is my code:
- public void setup()
- {
- size(1440, 900, OPENGL);
- }
- public void mousePressed()
- {
- println(mouseY + " - " + screenY(mouseX, mouseY, 0));
- }
When I press the mouse I found this:
514 - 1414
398 - 1298
It seems that the screenY value is increased by the height of the sketch.
Is this a bug?
Thanks.
paolofuse
1