<?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: Exercise 9-8: Array of button objects</title>
	<atom:link href="http://www.learningprocessing.com/exercises/chapter-9/exercise-9-8/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>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel Shiffman</title>
		<link>http://www.learningprocessing.com/exercises/chapter-9/exercise-9-8/comment-page-1/#comment-9251</link>
		<dc:creator>Daniel Shiffman</dc:creator>
		<pubDate>Tue, 09 Feb 2010 03:40:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=1287#comment-9251</guid>
		<description>That&#039;s exactly right.  fill() affects the shapes drawn afterwards so you always want to make sure you call rect() (or whatever shape you want) after you set the rectangle&#039;s color.</description>
		<content:encoded><![CDATA[<p>That&#8217;s exactly right.  fill() affects the shapes drawn afterwards so you always want to make sure you call rect() (or whatever shape you want) after you set the rectangle&#8217;s color.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria Antônia</title>
		<link>http://www.learningprocessing.com/exercises/chapter-9/exercise-9-8/comment-page-1/#comment-9245</link>
		<dc:creator>Maria Antônia</dc:creator>
		<pubDate>Mon, 08 Feb 2010 18:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=1287#comment-9245</guid>
		<description>Hi!
Something weird happened here with my display function:

void display(){
  rectMode(CORNER);
  stroke(100);
rect(x,y,w,h);  // when rect is here, the button that reacts is always the next button of the array...
 if (on){
    fill(175);
  }else{
    fill(0);
  }
//rect(x,y,w,h);  ----&gt; when rect is here, the program works properly...
}

Is that any relation with the program flow, or is that a bug??</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Something weird happened here with my display function:</p>
<p>void display(){<br />
  rectMode(CORNER);<br />
  stroke(100);<br />
rect(x,y,w,h);  // when rect is here, the button that reacts is always the next button of the array&#8230;<br />
 if (on){<br />
    fill(175);<br />
  }else{<br />
    fill(0);<br />
  }<br />
//rect(x,y,w,h);  &#8212;-&gt; when rect is here, the program works properly&#8230;<br />
}</p>
<p>Is that any relation with the program flow, or is that a bug??</p>
]]></content:encoded>
	</item>
</channel>
</rss>
