P2D-Mode: double Pixels

in following code

void setup() {
  size(200, 200, P2D);
  background(255);
}

void draw() {
  point(mouseX, mouseY);  
}

processing draws to points, one at mouseX,mouseY another one at mouseX+1, mouseY-1. Is this a bug in processing or an openGL-bug? Has anyone the same problem? (MacBook Pro, NVIDIA GeForce GT 750M 2048 MB, OS X 10.10.5, Processing 3.0.2)

Answers

  • Answer ✓

    same on linux.

    if you add noSmooth(); the problem disappears. as do ALL the pixels. 8)

    size(200, 200);

    fixes the problem

  • edited March 2016 Answer ✓

    Same on windows.

    Or almost the same, it's drawing a point at mouseX, mouseY and a point at mouseX-1, mouseY here.

  • @koogs: no Pixel is interesting, but not the solution ;o)

  • strokeWeight(2); solves the problem! ;o)

Sign In or Register to comment.