[html5] SVG lineTo in a loop
Rik Cabanier
cabanier at gmail.com
Fri Dec 21 11:58:39 PST 2012
This seems more like a question for www-svg.
Can you also post a jsfiddle so we can see what you're trying to accomplish?
On Fri, Dec 21, 2012 at 11:25 AM, 黃俊毓 <yillkid at gmail.com> wrote:
> Hi all.
>
> I can coding as blow to draw a polygonal line:
>
> var ctx = canvas.getContext("2d");
> ctx.beginPath();
>
> ctx.moveTo(0,126);
>
> { data in loop }
> ctx.lineTo(x , {{data}});
> { endfor }
>
> ctx.stroke();
> ctx.closePath();
>
> But if I want to set a moveto one time and multi times lineto with a loop,
> how I should do with SVG ?
>
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20121221/bcf630ae/attachment-0003.htm>
More information about the Help
mailing list