P2D and noSmooth() not working as expected on Macbook Pro with Retina display
in
Programming Questions
•
3 months ago
- void setup() {
- size(400, 400, P2D);
- noSmooth();
- }
- void draw() {
- background(30);
- noFill();
- stroke(255, 70);
- for (int i=0; i<width; i+=10) {
- for (int j=0; j<height; j+=10) {
- point(i, j);
- }
- }
- }
Running the code above, nothing shows up on the screen, just the dark grey background.
When I remove P2D, and render with the default renderer, everything looks fine, BUT, when I export that to application(mac os x), the dot grid is all broken apart.
What's more strange is that when I compare the result of the same program running in Processing IDE and MacOSX application,
- background(30);
Anybody has seen this happening?
Tested on Mac OSX 10.8.4 with 15 inch Macbook Pro with Retina Display
Processing v.2.0.1
1