<?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 4-4: Recreate screenshots</title>
	<atom:link href="http://www.learningprocessing.com/exercises/chapter-4/exercise-4-4/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-4/exercise-4-4/comment-page-1/#comment-8182</link>
		<dc:creator>Daniel Shiffman</dc:creator>
		<pubDate>Thu, 07 Jan 2010 16:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=889#comment-8182</guid>
		<description>You created the move() and display() functions, but never call them anywhere.  Only draw() is called automatically by Processing so you&#039;ll need to explicitly call your user-defined functions, i.e.

&lt;pre&gt;
void draw() {
  move();
  // etc.
}
&lt;/pre&gt;

&#039;&gt;&#039; is SHIFT-PERIOD on my mac.</description>
		<content:encoded><![CDATA[<p>You created the move() and display() functions, but never call them anywhere.  Only draw() is called automatically by Processing so you&#8217;ll need to explicitly call your user-defined functions, i.e.</p>
<pre>
void draw() {
  move();
  // etc.
}
</pre>
<p>&#8216;>&#8217; is SHIFT-PERIOD on my mac.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dolsign</title>
		<link>http://www.learningprocessing.com/exercises/chapter-4/exercise-4-4/comment-page-1/#comment-8159</link>
		<dc:creator>Dolsign</dc:creator>
		<pubDate>Wed, 06 Jan 2010 14:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=889#comment-8159</guid>
		<description>Hi I&#039;ve attempted adding variable to A) with the intention of making it track from left to right but nothing is happening. What am I doing wrong? 

int circleX = 50;
int circleY = 50;
int circleSize = 50;
int circleFill = 0;
int speed = 1;

// basic setup
void setup() {
  size(200,200);
  background(255);
  smooth();
}

void draw() {
  stroke(0);
  fill(0);
// circle top left
ellipse(circleX,circleY,circleSize,circleSize);
// circle top right
ellipse(150,50,50,50);
// circle bottom left
ellipse(50,150,50,50);
// circle bottom right
ellipse(150,150,50,50);
}

void move() {
  circleX = circleX + speed;
  if (circleX &gt; width) {
    circleX = 10;
  }
}

void display() {
  fill(circleFill);
  ellipse(circleX,circleY,circleSize,circleSize);
}

also do you know how I would create the &gt; symbol on a mac because at the moment I can only copy and paste it. I&#039;ve tried alt  + every key available but still no joy

Thank you</description>
		<content:encoded><![CDATA[<p>Hi I&#8217;ve attempted adding variable to A) with the intention of making it track from left to right but nothing is happening. What am I doing wrong? </p>
<p>int circleX = 50;<br />
int circleY = 50;<br />
int circleSize = 50;<br />
int circleFill = 0;<br />
int speed = 1;</p>
<p>// basic setup<br />
void setup() {<br />
  size(200,200);<br />
  background(255);<br />
  smooth();<br />
}</p>
<p>void draw() {<br />
  stroke(0);<br />
  fill(0);<br />
// circle top left<br />
ellipse(circleX,circleY,circleSize,circleSize);<br />
// circle top right<br />
ellipse(150,50,50,50);<br />
// circle bottom left<br />
ellipse(50,150,50,50);<br />
// circle bottom right<br />
ellipse(150,150,50,50);<br />
}</p>
<p>void move() {<br />
  circleX = circleX + speed;<br />
  if (circleX &gt; width) {<br />
    circleX = 10;<br />
  }<br />
}</p>
<p>void display() {<br />
  fill(circleFill);<br />
  ellipse(circleX,circleY,circleSize,circleSize);<br />
}</p>
<p>also do you know how I would create the &gt; symbol on a mac because at the moment I can only copy and paste it. I&#8217;ve tried alt  + every key available but still no joy</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>
