Archives for Uncategorized

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.

Elliptical gradients in HTML5 canvas

We show how to create an elliptical gradient in the HTML5 canvas, using a radial gradient along with a context transformation. Full source code available for download.

Welcome to RectangleWorld!

Welcome to RectangleWorld, a new blog by Dan Gries of flashandmath. Although I am still very much interested in Flash and ActionScript, I am beginning to explore HTML5 Canvas and JavaScript, and will be posting some beginner-to-advanced tutorials here as I work on mapping my skills to this new environment. Coming from a background in […]