,y1);cxt.lineTo(x2,y2);cxt.lineTo(wX,wY);cxt.closePath();cxt.fill();cxt.restore();};function getY(x , startY , startX){return k*x + startY - k*startX;};function Cricle(x,y,r){cxt.save();var rad = cxt.createRadialGradient(x,y,0,x,y,r);rad.addColorStop(0,'rgba(255,255,255,0.8)');rad.addColorStop(0.1,'rgba(255,255,255,0.8)');rad.addColorStop(0.2,'rgba(255,255,255,0.08)');rad.addColorStop(1,'rgba(255,255,255,0)');cxt.fillStyle = rad;cxt.beginPath();cxt.arc(x,y,r,0,2*Math.PI,true);cxt.closePath();cxt.fill();cxt.