,
" + e.clientY + "
";
}
}
function createStar(xp,yp,fisk) {
var canvas = document.getElementById("mainstage");
var starColors = [
{"red":179,"green":217,"blue": 255},
{"red":255,"green":179,"blue": 255},
{"red":209,"green":179,"blue": 255},
{"red":255,"green":153,"blue": 102},
{"red":153,"green":255,"blue": 255},
];
let startAngle = Math.floor(Math.random() * 360) + 0;
let tentStart = Math.floor(Math.random() * 20) + 10;
let speedDecider = 2 //(Math.floor(Math.random() * 12) + 6) / 15;
var star = {
twinkle:new Date().getTime(),
lastCourse: new Date().getTime(),
x:xp | Math.floor(Math.random() * canvas.width) + 0,
y:yp | Math.floor(Math.random() * canvas.height) + 0,
color:starColors[Math.floor(Math.random() * 5) + 0],
angle:startAngle,
newAngle: startAngle + Math.floor(Math.random() * 10) - 5,
speed: Math.random() * 1.75 + 0.15,
speedmax: speedDecider,
direction: 0.05,
status:fisk | false,
tentacles: [
],
size:25,
}
tentz = Math.floor(Math.random() * 5) + 15;
for(n=0;n