<?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: Example 15-14: &#8220;Pointillism&#8221;</title>
	<atom:link href="http://www.learningprocessing.com/examples/chapter-15/example-15-14/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learningprocessing.com</link>
	<description>A Beginner's Guide to Programming Images, Animation, and Interaction by Daniel Shiffman</description>
	<lastBuildDate>Mon, 22 Mar 2010 14:53:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-14/comment-page-1/#comment-6537</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 06 Nov 2009 02:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=607#comment-6537</guid>
		<description>Thanks for the correction.</description>
		<content:encoded><![CDATA[<p>Thanks for the correction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yahya</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-14/comment-page-1/#comment-6526</link>
		<dc:creator>Yahya</dc:creator>
		<pubDate>Thu, 05 Nov 2009 15:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=607#comment-6526</guid>
		<description>It seems that several comments in these examples are misplaced.  For example, in this code, we have:
  noStroke();
  
  // Draw an ellipse at that location with that color
  fill(r,g,b,100);

Surely the purpose of the call to noStroke() is to set up the fill()?  In other languages, we might have something like:
  // Draw an ellipse at that location with that color and specified stroke parameters
  fill(r,g,b,100,strokeRed, strokeGreen, strokeBlue, strokeAlpha, strokeWidth);
so the &quot;noStroke()&quot; is really equivalent simply to &quot;strokeWidth = 0&quot;.  Placing the &quot;noStroke()&quot; after the comment that introduces the ellipse drawing block has another advantage: the necessary code steps are less likely to get separated by mistake, thus:
  
  // Draw an ellipse at that location with that color
  noStroke();
  fill(r,g,b,100);

The blank line before the comment also helps to delineate the entire ellipse drawing block more clearly.</description>
		<content:encoded><![CDATA[<p>It seems that several comments in these examples are misplaced.  For example, in this code, we have:<br />
  noStroke();</p>
<p>  // Draw an ellipse at that location with that color<br />
  fill(r,g,b,100);</p>
<p>Surely the purpose of the call to noStroke() is to set up the fill()?  In other languages, we might have something like:<br />
  // Draw an ellipse at that location with that color and specified stroke parameters<br />
  fill(r,g,b,100,strokeRed, strokeGreen, strokeBlue, strokeAlpha, strokeWidth);<br />
so the &#8220;noStroke()&#8221; is really equivalent simply to &#8220;strokeWidth = 0&#8243;.  Placing the &#8220;noStroke()&#8221; after the comment that introduces the ellipse drawing block has another advantage: the necessary code steps are less likely to get separated by mistake, thus:</p>
<p>  // Draw an ellipse at that location with that color<br />
  noStroke();<br />
  fill(r,g,b,100);</p>
<p>The blank line before the comment also helps to delineate the entire ellipse drawing block more clearly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
