This is a question about Processing.org .
I clean up the previously created objects by drawing a translucent white rectangle above the view for each frame.
However, it seems they never fade to completely white. Attenuation has a fixed point in some noticeably non-white shade of gray. The same thing happens when you try to fade to black.
Is this a standard feature of alpha blending in processing? Is there a relatively easy way to get around it in order to achieve a completely white background (provided sufficient steps are taken)?
I assumed that the resulting color would be a linear combination of colors that mix, which means the limit should be white. Perhaps a non-white fixed point is a rounding artifact?
Sample code illustrating the problem:
void setup() { size(300,300); background(0); noStroke(); frameRate(15); } void draw() { fill(255,10); rect(0,0,width,height); fill(255); rect(0,0,50,50);
edit: added java tag in the hope of more attention
source share