Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Flng Fck Newsgroups: comp.lang.javascript Subject: Re: Bezier curves javascript Date: Thu, 30 Mar 2017 13:00:37 +0200 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 30 Mar 2017 10:57:42 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ca61719fee30b6024c965d867435376a"; logging-data="10670"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196+QLnfenrYluVXpwZeftk" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Cancel-Lock: sha1:23RDUdZQkXF1yMDj+fWSA8sV/0g= Xref: csiph.com comp.lang.javascript:32865 Il 27/03/2017 18:34, jonas.thornvall@gmail.com ha scritto: > I was thinking adding bezier curves but when i look at the functions bezierCurveTo() and quadraticCurveTo() they only take one or two parameters? > > I think i remember from doing bezier curves in pascal, tha you basicly could have any number of points? > > If so what is the reason for the functions just holding one or two points for the curve? > > If you bother implement it why restrain what you can do with it? > http://www.e-cartouche.ch/content_reg/cartouche/graphics/en/image/curves/giger2.jpg This one takes 6 parameters https://developer.mozilla.org/it/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo