Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
A Bezier curve or, if it is a graph of some function, a large number of short straight line segments.
A similar bezier curve ( fiddle ):
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
ctx.lineWidth = 3;
ctx.strokeStyle = "green";
ctx.beginPath();
ctx.moveTo(4,4);
ctx.bezierCurveTo(160, 330, 160, 330, 316, 4);
ctx.stroke();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question