Posts tagged alpha

I can see your particle remnants: misadventures in alpha blending.

ugly gray trails

Are you fading out images in the HTML5 canvas by painting a transparent black rectangle over the top? Did you test your animation in different browsers? You may be unaware that ugly gray remnants are being left behind. I discuss the problem, how to predict the color of these remnants, and some workarounds.

Pure HTML5 canvas and JavaScript particles – methods for fading trails

A pretty particle effect in HTML5 Canvas with fading trails. We discuss some issues with browser differences, and a resulting solution for consistency across browsers.