<?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 4-3: Varying Variables</title>
	<atom:link href="http://www.learningprocessing.com/examples/chapter-4/example-4-3/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>Sun, 14 Mar 2010 17:16:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gabe</title>
		<link>http://www.learningprocessing.com/examples/chapter-4/example-4-3/comment-page-1/#comment-5661</link>
		<dc:creator>Gabe</dc:creator>
		<pubDate>Sun, 18 Oct 2009 17:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/wp/?page_id=326#comment-5661</guid>
		<description>Thanks. I&#039;m sure I&#039;ll have more questions in the hover chapters...:)</description>
		<content:encoded><![CDATA[<p>Thanks. I&#8217;m sure I&#8217;ll have more questions in the hover chapters&#8230;:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.learningprocessing.com/examples/chapter-4/example-4-3/comment-page-1/#comment-5660</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 18 Oct 2009 15:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/wp/?page_id=326#comment-5660</guid>
		<description>In this case, you just want to define a variable for the size of the circle, instead of hardcoding the number 50 in, i.e.

&lt;pre&gt;
int circleW = 100;
int circleH = 100;
&lt;/pre&gt;

Then you use those variables when drawing the circle.

&lt;pre&gt;
  ellipse(circleX,circleY,circleW,circleH);
&lt;/pre&gt;

And then adjust the values however you like!

&lt;pre&gt;
  circleW = circleW + 1;  // Growing
  circleH = circleH - 1;  // Shrinking
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>In this case, you just want to define a variable for the size of the circle, instead of hardcoding the number 50 in, i.e.</p>
<pre>
int circleW = 100;
int circleH = 100;
</pre>
<p>Then you use those variables when drawing the circle.</p>
<pre>
  ellipse(circleX,circleY,circleW,circleH);
</pre>
<p>And then adjust the values however you like!</p>
<pre>
  circleW = circleW + 1;  // Growing
  circleH = circleH - 1;  // Shrinking
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe</title>
		<link>http://www.learningprocessing.com/examples/chapter-4/example-4-3/comment-page-1/#comment-5652</link>
		<dc:creator>Gabe</dc:creator>
		<pubDate>Sun, 18 Oct 2009 06:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/wp/?page_id=326#comment-5652</guid>
		<description>so what is the solution to varying the speed at which the circle grows? I wound up using the abs() call as it was in the previous chapter.</description>
		<content:encoded><![CDATA[<p>so what is the solution to varying the speed at which the circle grows? I wound up using the abs() call as it was in the previous chapter.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
