I have made a bezier curve using html5 canvas and I'm wondering if it's possible to make it dashed? My code is:
canvas = document.getElementById("canvas");
ctx = canvas.getContext("2d")
ctx.lineWidth = 2;
ctx.strokeStyle = "#fff";
ctx.beginPath();
ctx.moveTo(-200, 350);
ctx.bezierCurveTo(199, 604, 220, 180, 500, 350);
ctx.stroke();
I have created a jsfiddle here
This is the first time I'm using html5 canvas so my skills with it aren't that great at this point. Thanks in advance.