<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Drawing a Circle (with Processing)</title>
	<atom:link href="http://petehindle.com/2008/06/12/drawing-a-circle-with-processing/feed/" rel="self" type="application/rss+xml" />
	<link>http://petehindle.com/2008/06/12/drawing-a-circle-with-processing/</link>
	<description>Pictures and stuff from a guy who likes coffee.</description>
	<lastBuildDate>Wed, 23 May 2012 19:27:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: admin</title>
		<link>http://petehindle.com/2008/06/12/drawing-a-circle-with-processing/#comment-39</link>
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 18 Jun 2008 13:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.petehindle.com/?p=106#comment-39</guid>
		<description><![CDATA[I know! I was confuzzled for a bit as I tried to work out when brenda had got so good at coding, and then realised it was actually Brenda-with-a-capital-&#039;B&#039;.]]></description>
		<content:encoded><![CDATA[<p>I know! I was confuzzled for a bit as I tried to work out when brenda had got so good at coding, and then realised it was actually Brenda-with-a-capital-&#8217;B&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brenda</title>
		<link>http://petehindle.com/2008/06/12/drawing-a-circle-with-processing/#comment-38</link>
		<dc:creator><![CDATA[brenda]]></dc:creator>
		<pubDate>Wed, 18 Jun 2008 07:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.petehindle.com/?p=106#comment-38</guid>
		<description><![CDATA[Crikey bonzah mate. What do you think the chances are of that happening? Two of them?]]></description>
		<content:encoded><![CDATA[<p>Crikey bonzah mate. What do you think the chances are of that happening? Two of them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://petehindle.com/2008/06/12/drawing-a-circle-with-processing/#comment-37</link>
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 15 Jun 2008 14:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.petehindle.com/?p=106#comment-37</guid>
		<description><![CDATA[Thank you so much Brenda - and especially for showing me that the text could be moved outside the for loop.]]></description>
		<content:encoded><![CDATA[<p>Thank you so much Brenda &#8211; and especially for showing me that the text could be moved outside the for loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brenda</title>
		<link>http://petehindle.com/2008/06/12/drawing-a-circle-with-processing/#comment-36</link>
		<dc:creator><![CDATA[Brenda]]></dc:creator>
		<pubDate>Sat, 14 Jun 2008 01:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.petehindle.com/?p=106#comment-36</guid>
		<description><![CDATA[If you want the dots to be evenly spaced, try this (two changes from your code):

void draw()  {
  translate(width/2, height/2);

  background(125);
  //point(x,y); //(a centre point)
  for (int i=1; i&lt;=pts; i++)  {
    angle = i*(360.0/pts);    // needs 360.0 not 360 to force floating point division
    px = x+cos(radians(angle))*radius;
    py = y+sin(radians(angle))*radius;
    point(px,py);
  }
  pts++;
  text(pts,-10,-10);  // moved from inside the for loop
  if (pts == 360)  {
    pts = 1;
  }
}]]></description>
		<content:encoded><![CDATA[<p>If you want the dots to be evenly spaced, try this (two changes from your code):</p>
<p>void draw()  {<br />
  translate(width/2, height/2);</p>
<p>  background(125);<br />
  //point(x,y); //(a centre point)<br />
  for (int i=1; i&lt;=pts; i++)  {<br />
    angle = i*(360.0/pts);    // needs 360.0 not 360 to force floating point division<br />
    px = x+cos(radians(angle))*radius;<br />
    py = y+sin(radians(angle))*radius;<br />
    point(px,py);<br />
  }<br />
  pts++;<br />
  text(pts,-10,-10);  // moved from inside the for loop<br />
  if (pts == 360)  {<br />
    pts = 1;<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brenda</title>
		<link>http://petehindle.com/2008/06/12/drawing-a-circle-with-processing/#comment-35</link>
		<dc:creator><![CDATA[brenda]]></dc:creator>
		<pubDate>Thu, 12 Jun 2008 09:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.petehindle.com/?p=106#comment-35</guid>
		<description><![CDATA[Your vid is private. Well done, it looks teh veh hardcore.]]></description>
		<content:encoded><![CDATA[<p>Your vid is private. Well done, it looks teh veh hardcore.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

