Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32877
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2017-03-30 06:35 -0700 |
| References | <ca459e88-12a9-479c-8696-29d9f7614288@googlegroups.com> <obiob6$ade$1@dont-email.me> <98f85b5b-25b2-4fb2-b6d7-7157d668b09a@googlegroups.com> |
| Message-ID | <f6207f6c-be1d-4844-8024-fd896964098b@googlegroups.com> (permalink) |
| Subject | Re: Bezier curves javascript |
| From | jonas.thornvall@gmail.com |
Den torsdag 30 mars 2017 kl. 13:39:30 UTC+2 skrev jonas.t...@gmail.com: > Den torsdag 30 mars 2017 kl. 13:00:44 UTC+2 skrev Flng Fck: > > 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 > > No that is just 1 control point. > But maybe the trick is doing the calculation of the points that make up the curve separate, but strangely i thought they all had effect on eachother, but maybe that is not how Bezier curves work. I was so sure that what i programmed in both basic, pascal and java did take any number of points. It seem strange to me that only the neighbour point would affect the full curve? Probably should saved the code.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bezier curves javascript jonas.thornvall@gmail.com - 2017-03-27 09:34 -0700
Re: Bezier curves javascript jonas.thornvall@gmail.com - 2017-03-27 09:44 -0700
Re: Bezier curves javascript jonas.thornvall@gmail.com - 2017-03-27 09:49 -0700
Re: Bezier curves javascript jonas.thornvall@gmail.com - 2017-03-29 09:50 -0700
Re: Bezier curves javascript Flng Fck <nothanks@invalid.invalid> - 2017-03-30 13:00 +0200
Re: Bezier curves javascript jonas.thornvall@gmail.com - 2017-03-30 04:39 -0700
Re: Bezier curves javascript jonas.thornvall@gmail.com - 2017-03-30 06:32 -0700
Re: Bezier curves javascript jonas.thornvall@gmail.com - 2017-03-30 06:35 -0700
Re: Bezier curves javascript jonas.thornvall@gmail.com - 2017-03-30 16:09 -0700
Re: Bezier curves javascript Flng Fck <nothanks@invalid.invalid> - 2017-04-03 10:49 +0200
Re: Bezier curves javascript jonas.thornvall@gmail.com - 2017-04-03 02:21 -0700
csiph-web