get() with OpenGL
in
Programming Questions
•
2 years ago
Hi, I seem to have a problem here, this works fine in anything other than OpenGL, can anyone explain why this is happening. get() seems to be inverted on the Y axis in OpenGL?
Thanks
Dave
import processing.opengl.*;
void setup() {
size(200, 200, OPENGL);
noStroke();
}
void draw() {
background(255, 0, 0);
fill(0, 255, 0);
rect(0, 0, 200, 100);
fill(get(int(mouseX),int(mouseY)));
rect(mouseX, mouseY, 10, 10);
}
1