//Bezier Curve Variables
var x = 390;
var y = 175;
var controlX1 = 265;
var controlY1 = 25;
var controlX2 = 125;
var controlY2 = 175;
var endX = 300;
var endY = 340;
//Quadratic Curve Variables
var controlX3 = 350;
var controlY3 = 390;
var emdX3 = 390;
var endY3 = 470;
//Quadratic Curve Variables
var controlX4 = 430;
var controlY4 = 390;
var endX4 = 470;
var endY4 =350;
//Bezier Curve Variables
var controlX5 = 655;
var controlY5 = 185;
var controlX6 = 525;
var controlY6 = 25;
var endX5 = 390;
var endY5 = 175;
//Rectangle
context.beginPath();
context. rect(rextX , rectY , rectwidth , rectheight
context.moveTo(x, y);
context.bezierCurveTo(controlX1, controlY1, controlX2, controlY2, endX, endY);
context.stroke();
No comments:
Post a Comment