function BezierCurve(start, control1, control2, end) {	
		
	this.draw = function(ctx, color) {
		ctx.beginPath();
		ctx.moveTo(start.x,start.y);
		ctx.strokeStyle=color;
		ctx.bezierCurveTo(control1.x,control1.y,control2.x,control2.y,end.x,end.y);
		ctx.stroke();
	}
}
