Trails in OpenGL when using Alpha Blending
in
Core Library Questions
•
1 year ago
I have always wondered about this and now the problem is popping up in a project...
How come drawing a rect over the screen with an opacity of "1" leaves trails?
When I use about a 16, it seems to work fine, but less alpha leaves old data on the screen... Any ideas would be wildly appreciated.
Thanks kindly,
C
- import processing.opengl.*;
- void setup(){
- size(640,480,OPENGL);
- background(255);
- }
- void draw(){
- fill(0,0,0,1);
- rect(0,0,width,height);
- fill(255);
- rect(mouseX-5,mouseY-5,10,10);
- }
2