Trying to draw a line
in
Programming Questions
•
10 months ago
Hi,
I'm trying to draw a line...
I want a black, 1 pixel line in P3D. For example, with that simple code I get...a 2 pixel and gray line!!!!
void setup() {
size(600, 400, P3D);
background(255);
noSmooth();
strokeWeight(1);
stroke(0);
line(0, 200, 0, 600, 200, 0);
}
After try with 2 video cards and a lot of experiments I've learned that in Javascript mode it draws the line correctly, but in Java mode not. I'm using Windows 7 (64 bits).
Any idea/advice?
Anyone can draw a black, 1 pixel line in P3D? With wich hardware and software??? I'm going to buy the same...
Thanks!
d.
I'm trying to draw a line...
I want a black, 1 pixel line in P3D. For example, with that simple code I get...a 2 pixel and gray line!!!!
void setup() {
size(600, 400, P3D);
background(255);
noSmooth();
strokeWeight(1);
stroke(0);
line(0, 200, 0, 600, 200, 0);
}
After try with 2 video cards and a lot of experiments I've learned that in Javascript mode it draws the line correctly, but in Java mode not. I'm using Windows 7 (64 bits).
Any idea/advice?
Anyone can draw a black, 1 pixel line in P3D? With wich hardware and software??? I'm going to buy the same...
Thanks!
d.
1