this.draw = function(x,y){ ctx.beginPath(); ctx.lineWidth = "10"; ctx.strokeStyle = "blue"; ctx.moveTo(x,y); ctx.lineTo(this.cordx2,this.cordy2); ctx.stroke(); }