<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Drawling lines in JavaScript</title>
	<atom:link href="http://ajaxian.com/archives/drawling-lines-in-javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/drawling-lines-in-javascript</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: themetroman</title>
		<link>http://ajaxian.com/archives/drawling-lines-in-javascript/comment-page-1#comment-277500</link>
		<dc:creator>themetroman</dc:creator>
		<pubDate>Wed, 23 Dec 2009 14:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1910#comment-277500</guid>
		<description>hi, 

I think Walter Zorn&#039;s graphing package is fantastic

i hope you don&#039;t mind me submitting a query - i am trying to create animation where lines are drawn with 2 second delays (a form of animation) - my code is as follows:

var jg = new jsGraphics(&#039;Canvas&#039;);
jg.setColor(&#039;maroon&#039;);
jg.drawLine(40,130,80,120);
setTimeout(&#039;jg.paint()&#039;,10000);
jg.drawLine(80,120,120,110);
setTimeout(&#039;jg.paint()&#039;,10000);

it draws everying thing at the same time i.e the setTimeout doesn&#039;t work - any ideas ?

thanks

Abbey</description>
		<content:encoded><![CDATA[<p>hi, </p>
<p>I think Walter Zorn&#8217;s graphing package is fantastic</p>
<p>i hope you don&#8217;t mind me submitting a query &#8211; i am trying to create animation where lines are drawn with 2 second delays (a form of animation) &#8211; my code is as follows:</p>
<p>var jg = new jsGraphics(&#8216;Canvas&#8217;);<br />
jg.setColor(&#8216;maroon&#8217;);<br />
jg.drawLine(40,130,80,120);<br />
setTimeout(&#8216;jg.paint()&#8217;,10000);<br />
jg.drawLine(80,120,120,110);<br />
setTimeout(&#8216;jg.paint()&#8217;,10000);</p>
<p>it draws everying thing at the same time i.e the setTimeout doesn&#8217;t work &#8211; any ideas ?</p>
<p>thanks</p>
<p>Abbey</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andi K</title>
		<link>http://ajaxian.com/archives/drawling-lines-in-javascript/comment-page-1#comment-245173</link>
		<dc:creator>Andi K</dc:creator>
		<pubDate>Wed, 13 Dec 2006 05:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1910#comment-245173</guid>
		<description>It&#039;s risky to do pixel graphics in JavaScript, like it&#039;s bad to do pixel graphics in Java or other language that don&#039;t optimize the process. Some years ago I build a JavaScript plotter for mathematical functions. I had to wait some minutes to create a 200x200px image. You should not use JavaScript to do this.
You should use SVG graphics although the browser with the blue E does not support this. This is a case you should use upcoming standards. 

Is there a live demo?</description>
		<content:encoded><![CDATA[<p>It&#8217;s risky to do pixel graphics in JavaScript, like it&#8217;s bad to do pixel graphics in Java or other language that don&#8217;t optimize the process. Some years ago I build a JavaScript plotter for mathematical functions. I had to wait some minutes to create a 200x200px image. You should not use JavaScript to do this.<br />
You should use SVG graphics although the browser with the blue E does not support this. This is a case you should use upcoming standards. </p>
<p>Is there a live demo?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://ajaxian.com/archives/drawling-lines-in-javascript/comment-page-1#comment-245166</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Wed, 13 Dec 2006 00:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1910#comment-245166</guid>
		<description>Wow p01, your implimentation hardly uses any code at at. I love it!
Its so much simpler wow. I am floored.</description>
		<content:encoded><![CDATA[<p>Wow p01, your implimentation hardly uses any code at at. I love it!<br />
Its so much simpler wow. I am floored.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexei</title>
		<link>http://ajaxian.com/archives/drawling-lines-in-javascript/comment-page-1#comment-245114</link>
		<dc:creator>Alexei</dc:creator>
		<pubDate>Tue, 12 Dec 2006 02:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1910#comment-245114</guid>
		<description>I agree. Walter Zorn&#039;s is fantastic.
Anyway.. one thing JS should not be used for is graphics. Can&#039;t print it, can&#039;t copy and paste it.. it&#039;s just stuck there.</description>
		<content:encoded><![CDATA[<p>I agree. Walter Zorn&#8217;s is fantastic.<br />
Anyway.. one thing JS should not be used for is graphics. Can&#8217;t print it, can&#8217;t copy and paste it.. it&#8217;s just stuck there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guyon</title>
		<link>http://ajaxian.com/archives/drawling-lines-in-javascript/comment-page-1#comment-245097</link>
		<dc:creator>Guyon</dc:creator>
		<pubDate>Mon, 11 Dec 2006 22:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1910#comment-245097</guid>
		<description>The main advantage of using s to draw graphics is it is more portable than the canvas methods. I&#039;ve been experimenting with graphics for some time and have developed a library which I have used in a drawing application here... http://www.webreference.com/programming/javascript/gr/column22/index.html</description>
		<content:encoded><![CDATA[<p>The main advantage of using s to draw graphics is it is more portable than the canvas methods. I&#8217;ve been experimenting with graphics for some time and have developed a library which I have used in a drawing application here&#8230; <a href="http://www.webreference.com/programming/javascript/gr/column22/index.html" rel="nofollow">http://www.webreference.com/programming/javascript/gr/column22/index.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Schiller</title>
		<link>http://ajaxian.com/archives/drawling-lines-in-javascript/comment-page-1#comment-245092</link>
		<dc:creator>Scott Schiller</dc:creator>
		<pubDate>Mon, 11 Dec 2006 19:29:37 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1910#comment-245092</guid>
		<description>p01! haven&#039;t seen you around in a while, man. :)
(Listen to this guy - he&#039;s very smart.)</description>
		<content:encoded><![CDATA[<p>p01! haven&#8217;t seen you around in a while, man. :)<br />
(Listen to this guy &#8211; he&#8217;s very smart.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathieu 'p01' HENRI</title>
		<link>http://ajaxian.com/archives/drawling-lines-in-javascript/comment-page-1#comment-245088</link>
		<dc:creator>Mathieu 'p01' HENRI</dc:creator>
		<pubDate>Mon, 11 Dec 2006 18:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1910#comment-245088</guid>
		<description>A few years ago, I wanted to animate some 3D objects in wireframe in JavaScript. Bresensham wasn&#039;t fast enough and lead to an unpleasant tag soup. So I came up with a slightly less accurate but &lt;em&gt;much faster&lt;/em&gt; technique:

http://www.p01.org/articles/DHTML_techniques/Drawing_lines_in_JavaScript/</description>
		<content:encoded><![CDATA[<p>A few years ago, I wanted to animate some 3D objects in wireframe in JavaScript. Bresensham wasn&#8217;t fast enough and lead to an unpleasant tag soup. So I came up with a slightly less accurate but <em>much faster</em> technique:</p>
<p><a href="http://www.p01.org/articles/DHTML_techniques/Drawing_lines_in_JavaScript/" rel="nofollow">http://www.p01.org/articles/DHTML_techniques/Drawing_lines_in_JavaScript/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl G</title>
		<link>http://ajaxian.com/archives/drawling-lines-in-javascript/comment-page-1#comment-245086</link>
		<dc:creator>Karl G</dc:creator>
		<pubDate>Mon, 11 Dec 2006 17:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1910#comment-245086</guid>
		<description>While jsgraphics does work, it&#039;s not fast at all unless you&#039;re using it for the simplest graphic elements. The current best way to draw lines is to use the canvas API and get IE support using the google excanvas.</description>
		<content:encoded><![CDATA[<p>While jsgraphics does work, it&#8217;s not fast at all unless you&#8217;re using it for the simplest graphic elements. The current best way to draw lines is to use the canvas API and get IE support using the google excanvas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://ajaxian.com/archives/drawling-lines-in-javascript/comment-page-1#comment-245072</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Mon, 11 Dec 2006 15:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1910#comment-245072</guid>
		<description>Someone figured it out before: 
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm

I used this lib last year, it just plain rocks. It works extremely well and does a great job, fast and cross-browser. What else to ask?</description>
		<content:encoded><![CDATA[<p>Someone figured it out before:<br />
<a href="http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm" rel="nofollow">http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm</a></p>
<p>I used this lib last year, it just plain rocks. It works extremely well and does a great job, fast and cross-browser. What else to ask?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

