Line/stroke fading issue
in
Programming Questions
•
1 year ago
Hi All
I recently went from using Processing 1.5.1 to 2.0 Beta 3 and have found a quirk in the P3D drawing.
I'm trying to leave trails when drawing graphics by not calling background() but drawing a low alpha rect() at the beginning of each draw function. This is a technique I've used many times without a problem but I'm finding that lines or ellipses/rects with strokes are not fading.
If you change the renderer to P2D this isn't a problem. The speed of P3D is required for this project.
Am I missing something? Are others finding the same issue?
James
- void setup()
- {
- size(500, 500, P3D);
- }
- void draw()
- {
- pushMatrix();
- //translate(200, 0, 1);
- fill(222, 1);
- rect(0, 0, width, height);
- popMatrix();
- fill(random(255), 24, 76);
- ellipse(random(width), random(width), 30, 30);
- line(random(width*0.5), random(height*0.5), random(width*0.5), random(height*0.5));
- }
1