I am currently working with Processing 2.0a4 and I wonder if anybody else has the same problem:
When running the sketch below in standard mode everything is okay. But when i render it in javascript mode it doesn't smooth/antialias the lines. Am I doing something wrong or is there any other way to smooth/antialias in processingjs?
- void setup() {
- size(400, 400, OPENGL);
- hint(DISABLE_OPENGL_2X_SMOOTH);
- hint(ENABLE_OPENGL_4X_SMOOTH);
- smooth();
- stroke(0);
- noFill();
- strokeWeight(2);
- }
- void draw() {
- background(255);
- rotateX(mouseX/200.0);
- rotateY(mouseY/200.0);
- translate(width/2, height/2);
- box(200);
- }
Thanks in advance,
mrzl
1