smooth (antialiased) lines in OpenGL
in
Core Library Questions
•
1 year ago
i feel like i've asked this question before, but not sure i ever got an answer and scouring the forums isn't getting me anywhere...
i'd like a nice antialiased ellipse in GL. i'm using 2.0a6. this code:
- void setup () {
- size(200, 200, OPENGL);
- }
- void draw () {
- background(0);
- ellipseMode(CENTER);
- stroke(255);
- noFill();
- ellipse(0.5*width, 0.5*height, 100, 100);
- }
yields this image:
adding smooth() to setup() or to draw() has no effect. the aliasing is even more apparent when the strokeWidth() increases...
1