-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Original author: [email protected] (June 07, 2010 01:16:56)
This bug automatically added from:
http://dev.processing.org/bugs/show_bug.cgi?id=1359
Comment from sonic, 2009-10-22 11:47
Using the OpenGL renderer results in curves with occasional 'jumping'
lines. Switching to the default renderer eliminates the problem. I'm using
Processing 1.0.9 on a Mac Pro quad core tower, OS 10.5.8, ATI Radeon HD
2600 XT graphics card. (You might have to watch for a couple minutes to see
the behavior.)
import processing.opengl.*;
void setup() {
size(720, 720, OPENGL);
frameRate(40);
smooth();
}
float a = random(-1, 1);
float b = random(-1, 1);
float c = random(-1, 1);
float d = random(-1, 1);
float e = random(-1, 1);
float f = random(-1, 1);
float g = random(-1, 1);
float h = random(-1, 1);
void draw() {
background(75, 60, 85);
a = a + .002;
b = b + .0025;
c = c + .001;
d = d + .0015;
e = e + .0005;
f = f + .003;
g = g + .0035;
h = h + .0015;
noStroke();
fill(20, 220);
curve(width/2+sin(b)(width/2+100), width/2+sin(c)(width/2+100),
width/2+sin(d)(width/2+100), width/2+sin(e)(width/2+100),
width/2+sin(f)(width/2+100), width/2+sin(g)(width/2+100),
width/2+sin(h)(width/2+100), width/2+sin(a)(width/2+100));
}
Original issue: http://code.google.com/p/processing/issues/detail?id=193