(function () {
var canvas = document.querySelector('canvas'),
+ r = Math.random,
+ pi = Math.PI,
+ cos = Math.cos,
+ sin = Math.sin,
context = canvas.getContext('2d'),
fps = 30,
lastFrame = 0,
speed = 1,
- size = 5 + rand(10),
- r = Math.random,
- pi = Math.PI,
- cos = Math.cos,
- sin = Math.sin;
+ size = 5 + rand(10);
var clear = !!(r() > 0.5);
var changeColor = !!(r() > 0.5);