Sparkles, ported from HTML5 to Haxe.