<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Languages of the real and artificial - Latest Comments in Javascript Beziers</title><link>http://osteele.disqus.com/</link><description></description><atom:link href="https://osteele.disqus.com/javascript_beziers/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 15 Jun 2008 21:06:05 -0000</lastBuildDate><item><title>Re: Javascript Beziers</title><link>http://blog.osteele.com/archives/2006/02/javascript-beziers#comment-4881051</link><description>&lt;p&gt;This was quite refreshing after spending a dull sunday afternoon watching nonsense on youtube. I am trying to get my programming chops up to snuff, but i am terrible&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">learn to draw animation, witho</dc:creator><pubDate>Sun, 15 Jun 2008 21:06:05 -0000</pubDate></item><item><title>Re: Javascript Beziers</title><link>http://blog.osteele.com/archives/2006/02/javascript-beziers#comment-4881050</link><description>&lt;p&gt;I'm really impressed with that! Thanks for sharing.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jbj</dc:creator><pubDate>Tue, 18 Mar 2008 09:07:58 -0000</pubDate></item><item><title>Re: Javascript Beziers</title><link>http://blog.osteele.com/archives/2006/02/javascript-beziers#comment-4881049</link><description>&lt;p&gt;I just sped bezier.atT() up by 20%.  It's now around 35ms on my MacBook (in power saving mode), in Firefox 1.5 and Safari 2.0.1.  It was 45ms in Safari and 55ms in Firefox.&lt;/p&gt;&lt;p&gt;(Yahoo has an implementation to0, but it's around 150/300ms, or 110ms/460ms if you leave in the calls to parseInt.)&lt;/p&gt;&lt;p&gt;If you're calling bezier.atT() directly, the next optimization would be to inline that so that you can evaluated multiple points at once.  That will save one function call per point.&lt;/p&gt;&lt;p&gt;If you're using the path interface, you could stub out the call to bezier.atT() to see if searching for the relevant segment is appreciable.  That could use a binary search.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">osteele</dc:creator><pubDate>Tue, 21 Mar 2006 20:44:09 -0000</pubDate></item><item><title>Re: Javascript Beziers</title><link>http://blog.osteele.com/archives/2006/02/javascript-beziers#comment-4881048</link><description>&lt;p&gt;Wow, this is great. I did something similar with polygons (no curves). Performance, however, is an issue. I'm running a continuous animation with around 50 points.&lt;/p&gt;&lt;p&gt;Is this just going to be slow or is there something I can do to speed it up?&lt;/p&gt;&lt;p&gt;Thanks,&lt;br&gt;Jason&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason Jobe</dc:creator><pubDate>Mon, 13 Mar 2006 13:56:59 -0000</pubDate></item><item><title>Re: Javascript Beziers</title><link>http://blog.osteele.com/archives/2006/02/javascript-beziers#comment-4881047</link><description>&lt;p&gt;Drat - wordpress (quite reasonably) stripped the LZX out of my example - I'll try again:&lt;/p&gt;&lt;p&gt;            this.beginPath();&lt;br&gt;            this.moveTo(75,40);&lt;br&gt;            this.bezierCurveTo(75,37,70,25,50,25);&lt;br&gt;            this.bezierCurveTo(20,25,20,62.5,20,62.5);&lt;br&gt;            this.bezierCurveTo(20,80,40,102,75,120);&lt;br&gt;            this.bezierCurveTo(110,102,130,80,130,62.5);&lt;br&gt;            this.bezierCurveTo(130,62.5,130,25,100,25);&lt;br&gt;            this.bezierCurveTo(85,25,75,37,75,40);&lt;br&gt;            this.fill();&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Max Carlson</dc:creator><pubDate>Fri, 10 Mar 2006 22:18:04 -0000</pubDate></item><item><title>Re: Javascript Beziers</title><link>http://blog.osteele.com/archives/2006/02/javascript-beziers#comment-4881046</link><description>&lt;p&gt;Oliver, this is fabulous stuff!  I'm integrating it into the platform now.  I borrowed a testcase from &lt;a href="http://developer.mozilla.org/samples/canvas-tutorial/2_6_canvas_beziercurveto.html" rel="nofollow noopener" target="_blank" title="http://developer.mozilla.org/samples/canvas-tutorial/2_6_canvas_beziercurveto.html"&gt;http://developer.mozilla.or...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;            this.beginPath();&lt;br&gt;            this.moveTo(75,40);&lt;br&gt;            this.bezierCurveTo(75,37,70,25,50,25);&lt;br&gt;            this.bezierCurveTo(20,25,20,62.5,20,62.5);&lt;br&gt;            this.bezierCurveTo(20,80,40,102,75,120);&lt;br&gt;            this.bezierCurveTo(110,102,130,80,130,62.5);&lt;br&gt;            this.bezierCurveTo(130,62.5,130,25,100,25);&lt;br&gt;            this.bezierCurveTo(85,25,75,37,75,40);&lt;br&gt;            this.fill();&lt;/p&gt;&lt;p&gt;Two of the curves are drawn as lines because the intersection method thinks they're collinear.  Any idea why?  Thanks!&lt;/p&gt;&lt;p&gt;Regards,&lt;br&gt;Max Carlson&lt;br&gt;&lt;a href="http://OpenLaszlo.org" rel="nofollow noopener" target="_blank" title="OpenLaszlo.org"&gt;OpenLaszlo.org&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Max Carlson</dc:creator><pubDate>Fri, 10 Mar 2006 22:15:33 -0000</pubDate></item><item><title>Re: Javascript Beziers</title><link>http://blog.osteele.com/archives/2006/02/javascript-beziers#comment-4881045</link><description>&lt;p&gt;[...] Update: Some of the support libraries are now available as open source. See JSON for OpenLaszlo, JavaScript Beziers, and Canvas with Text. [...]&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Languages of the real and arti</dc:creator><pubDate>Thu, 02 Mar 2006 20:58:51 -0000</pubDate></item></channel></rss>