<?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 13-6: Oscillation</title>
	<atom:link href="http://www.learningprocessing.com/examples/chapter-13/example-13-6/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>Thu, 09 Feb 2012 16:27:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel Shiffman</title>
		<link>http://www.learningprocessing.com/examples/chapter-13/example-13-6/comment-page-1/#comment-17979</link>
		<dc:creator>Daniel Shiffman</dc:creator>
		<pubDate>Thu, 20 Jan 2011 14:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=530#comment-17979</guid>
		<description>@Dave, whoops yes, that is an error will fix now!</description>
		<content:encoded><![CDATA[<p>@Dave, whoops yes, that is an error will fix now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Shiffman</title>
		<link>http://www.learningprocessing.com/examples/chapter-13/example-13-6/comment-page-1/#comment-17872</link>
		<dc:creator>Daniel Shiffman</dc:creator>
		<pubDate>Mon, 17 Jan 2011 21:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=530#comment-17872</guid>
		<description>You must have a parentheses out of place or something, this works no problem:

&lt;pre&gt;
  float r = width/2;
  float x = (sin(theta) + 1) * r; 
&lt;/pre&gt;

Also, if you declared r above setup() then widht won&#039;t have been set yet and the value would be 0.</description>
		<content:encoded><![CDATA[<p>You must have a parentheses out of place or something, this works no problem:</p>
<pre>
  float r = width/2;
  float x = (sin(theta) + 1) * r;
</pre>
<p>Also, if you declared r above setup() then widht won&#8217;t have been set yet and the value would be 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MD</title>
		<link>http://www.learningprocessing.com/examples/chapter-13/example-13-6/comment-page-1/#comment-17827</link>
		<dc:creator>MD</dc:creator>
		<pubDate>Mon, 17 Jan 2011 04:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=530#comment-17827</guid>
		<description>I noticed a small quirk with this statement,
float x = (sin(theta) + 1) * width/2;

When \width/2\ is replaced by a variable \float r = width/2\, the ellipse doesn&#039;t oscillate. Does anyone know why?</description>
		<content:encoded><![CDATA[<p>I noticed a small quirk with this statement,<br />
float x = (sin(theta) + 1) * width/2;</p>
<p>When \width/2\ is replaced by a variable \float r = width/2\, the ellipse doesn&#8217;t oscillate. Does anyone know why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.learningprocessing.com/examples/chapter-13/example-13-6/comment-page-1/#comment-15696</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 22 Nov 2010 15:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=530#comment-15696</guid>
		<description>the code says 

 // The output of the sin() function oscillates smoothly between 1 and 1. 

should this not say:

 // The output of the sin() function oscillates smoothly between -1 and 1. 

confused me a bit.</description>
		<content:encoded><![CDATA[<p>the code says </p>
<p> // The output of the sin() function oscillates smoothly between 1 and 1. </p>
<p>should this not say:</p>
<p> // The output of the sin() function oscillates smoothly between -1 and 1. </p>
<p>confused me a bit.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

