initParticle = function(i){
const {baseTTL, rangeTTL, baseSpeed, rangeSpeed, baseSize, rangeSize, baseHue, rangeHue} = vars;
let x = Math.random() * canvas.a.width,
y = Math.random() * canvas.a.height,
theta = Math.atan2(window.center[1]-y, window.center[0]-x)
return {
id: i,
x: x,
y: y,
vx: Math.cos(theta) * 6,
vy: Math.sin(theta) * 6,
life: 0,
ttl: baseTTL + (Math.random() * rangeTTL),
speed: baseSpeed + (Math.random() * rangeSpeed),
size: baseSize + (Math.random() * rangeSize),
hue: baseHue + (Math.random() * rangeHue),
}
}