[Solved] Why does the canvas have a black background?
[ad_1] One solution is to use many layers, which will be responsible of the overall fading. So at each frame, you create a new layer, and you decrease the opacity of all the previous ones. When that opacity is below a certain threshold, you remove it from the list. Then you change your draw() methods … Read more