example:
function drawArc(context){
context.strokeStyle = "#000000";
context.lineWidth = 5;
context.beginPath();
context.arc(150, 200, 100, (Math.PI/180)*0, (Math.PI/180)*90, true);
context.stroke();
context.beginPath();
context.arc(400, 200, 100, (Math.PI/180)*0, (Math.PI/180)*270, false);
context.closePath();
context.stroke();
}
No comments:
Post a Comment