function drawStar(cxt, x, y, outerR, innerR, rot) { cxt.beginPath(); ; i < ; i++) { cxt.lineTo(Math.cos((+i*-rot)/*Math.PI)*outerR+x, -Math.sin((+i*-rot)/*Math.PI)*outerR+y); cxt.lineTo(Math.cos(( + i * - rot) / * Math.PI) * innerR + x, -Math.sin(( +…