Sunday, May 22, 2011

quadraticCurveTo() and bezierCurveTo()

function drawCurveTo(context){

context.strokeStyle = "#000000";
context.lineWidth = 5;

context.moveTo(50, 0)
context.quadraticCurveTo(150,100,0,50);

context.moveTo(0, 150);
context.bezierCurveTo(125, 0,175,300,300,150);

context.stroke();
}


quadraticCurveTo() and bezierCurveTo()

No comments:

Post a Comment