<?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-8: Adjusting Image Brightness</title>
	<atom:link href="http://www.learningprocessing.com/examples/chapter-15/example-15-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>Thu, 09 Feb 2012 16:27:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lpcambra</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-8/comment-page-1/#comment-20724</link>
		<dc:creator>Lpcambra</dc:creator>
		<pubDate>Mon, 06 Feb 2012 14:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=594#comment-20724</guid>
		<description>Hello, I downloaded the example and it worked, also it seems i wasn&#039;t saving in a separate folder all of the different codes and it was creating problems, all works now.
Thank You, for the time Mr. Shiffman.
</description>
		<content:encoded><![CDATA[<p>Hello, I downloaded the example and it worked, also it seems i wasn&#8217;t saving in a separate folder all of the different codes and it was creating problems, all works now.<br />
Thank You, for the time Mr. Shiffman.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-8/comment-page-1/#comment-20717</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 02 Feb 2012 18:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=594#comment-20717</guid>
		<description>sorry, i&#039;d need to know more of the error.  did you make sure you have the image file in your data folder?  try downloading the example and run that directly rather than re-typing it.</description>
		<content:encoded><![CDATA[<p>sorry, i&#8217;d need to know more of the error.  did you make sure you have the image file in your data folder?  try downloading the example and run that directly rather than re-typing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lpcambra</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-8/comment-page-1/#comment-20716</link>
		<dc:creator>Lpcambra</dc:creator>
		<pubDate>Wed, 01 Feb 2012 18:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=594#comment-20716</guid>
		<description>Hi, Mr.Shiffman

Just tried to do the same code as above, but i&#039;m gettin the same error over and over...

         &quot;  Could not find a method to load lomotomocopy
            Exception in thread &quot;Animation Thread&quot; java.lang.NullPointerException&quot;

I&#039;m running it on a windows7 64, on the Processing version 1.5.1

i&#039;m very &quot;noob&quot; at this...
</description>
		<content:encoded><![CDATA[<p>Hi, Mr.Shiffman</p>
<p>Just tried to do the same code as above, but i&#8217;m gettin the same error over and over&#8230;</p>
<p>         &#8221;  Could not find a method to load lomotomocopy<br />
            Exception in thread &#8220;Animation Thread&#8221; java.lang.NullPointerException&#8221;</p>
<p>I&#8217;m running it on a windows7 64, on the Processing version 1.5.1</p>
<p>i&#8217;m very &#8220;noob&#8221; at this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-8/comment-page-1/#comment-20595</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sun, 18 Sep 2011 22:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=594#comment-20595</guid>
		<description>Pls. disregard the post below, after println&#039;ing adjustBrightness, I now understand we&#039;re adjusting the entire image from dark to light, rather than just brightening what exists.</description>
		<content:encoded><![CDATA[<p>Pls. disregard the post below, after println&#8217;ing adjustBrightness, I now understand we&#8217;re adjusting the entire image from dark to light, rather than just brightening what exists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-8/comment-page-1/#comment-20594</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sun, 18 Sep 2011 22:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=594#comment-20594</guid>
		<description>I understand why we use adjustBrightness, but I&#039;m unclear as to how we calculated it; specifically why we multiply mouseX by float. Also, why not use mouseX as-is? Why create a fraction then on top of that figure in a multiplier (0–8)? Thanks Dan!</description>
		<content:encoded><![CDATA[<p>I understand why we use adjustBrightness, but I&#8217;m unclear as to how we calculated it; specifically why we multiply mouseX by float. Also, why not use mouseX as-is? Why create a fraction then on top of that figure in a multiplier (0–8)? Thanks Dan!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-8/comment-page-1/#comment-20526</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 23 May 2011 17:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=594#comment-20526</guid>
		<description>There is an &#039;r&#039; for every single pixel (640 *480!) so you are printing  307,200 lines every time through draw, that&#039;s too much for the message console to handle.  Try just printing out the center value or something.

if (x == 100 &amp;&amp; y == 100) {
  println(r);
}</description>
		<content:encoded><![CDATA[<p>There is an &#8216;r&#8217; for every single pixel (640 *480!) so you are printing  307,200 lines every time through draw, that&#8217;s too much for the message console to handle.  Try just printing out the center value or something.</p>
<p>if (x == 100 &amp;&amp; y == 100) {<br />
  println(r);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-8/comment-page-1/#comment-20527</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 23 May 2011 17:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=594#comment-20527</guid>
		<description>It&#039;s likely your image file isn&#039;t the same resolution as your Processing sketch. i.e. if you have

size(600,400);

your image needs to also be 600x400 (for this example to run). Otherwise, you&#039;d have to alter the math and use a different &quot;loc&quot; for the Processing window and the image pixels. </description>
		<content:encoded><![CDATA[<p>It&#8217;s likely your image file isn&#8217;t the same resolution as your Processing sketch. i.e. if you have</p>
<p>size(600,400);</p>
<p>your image needs to also be 600&#215;400 (for this example to run). Otherwise, you&#8217;d have to alter the math and use a different &#8220;loc&#8221; for the Processing window and the image pixels. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slopeavery</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-8/comment-page-1/#comment-20523</link>
		<dc:creator>Slopeavery</dc:creator>
		<pubDate>Sun, 22 May 2011 16:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=594#comment-20523</guid>
		<description>I tried to view the value for &quot;r&quot; using println(r) it freezes the program, I&#039;m not sure why.

  When I make &quot;r&quot; a global variable I see numbers close to what I expect if a place the code after updatePixels();

     updatePixels();
  //println(&quot;r is &quot; + r);

If I put it in the body of the code it stops working, don&#039;t get that either.

Thanks for the book! I&#039;m enjoying it.</description>
		<content:encoded><![CDATA[<p>I tried to view the value for &#8220;r&#8221; using println(r) it freezes the program, I&#8217;m not sure why.</p>
<p>  When I make &#8220;r&#8221; a global variable I see numbers close to what I expect if a place the code after updatePixels();</p>
<p>     updatePixels();<br />
  //println(&#8220;r is &#8221; + r);</p>
<p>If I put it in the body of the code it stops working, don&#8217;t get that either.</p>
<p>Thanks for the book! I&#8217;m enjoying it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Shiffman</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-8/comment-page-1/#comment-16843</link>
		<dc:creator>Daniel Shiffman</dc:creator>
		<pubDate>Wed, 22 Dec 2010 19:02:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=594#comment-16843</guid>
		<description>It&#039;s likely your image file isn&#039;t the same resolution as your Processing sketch.  i.e. if you have

size(600,400);

your image needs to also be 600x400 (for this example to run).  Otherwise, you&#039;d have to alter the math and use a different &quot;loc&quot; for the Processing window and the image pixels.</description>
		<content:encoded><![CDATA[<p>It&#8217;s likely your image file isn&#8217;t the same resolution as your Processing sketch.  i.e. if you have</p>
<p>size(600,400);</p>
<p>your image needs to also be 600&#215;400 (for this example to run).  Otherwise, you&#8217;d have to alter the math and use a different &#8220;loc&#8221; for the Processing window and the image pixels.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew M</title>
		<link>http://www.learningprocessing.com/examples/chapter-15/example-15-8/comment-page-1/#comment-16755</link>
		<dc:creator>Matthew M</dc:creator>
		<pubDate>Tue, 21 Dec 2010 05:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=594#comment-16755</guid>
		<description>Thanks for all of the examples. I keep running into a ArrayIndexOutOfBoundsException: 40320 error when I try and run this code example. I originally just tried to adapt the previous code to enhance my knowledge, but when that failed I ran this code (cut and paste) but added my own test image. I was able to load and use a test image with prior code examples.

Any suggestions? I am using Processing 1.2.1 on a Mac.

The line it highlights is &quot;   pixels[loc] = c;&quot;</description>
		<content:encoded><![CDATA[<p>Thanks for all of the examples. I keep running into a ArrayIndexOutOfBoundsException: 40320 error when I try and run this code example. I originally just tried to adapt the previous code to enhance my knowledge, but when that failed I ran this code (cut and paste) but added my own test image. I was able to load and use a test image with prior code examples.</p>
<p>Any suggestions? I am using Processing 1.2.1 on a Mac.</p>
<p>The line it highlights is &#8221;   pixels[loc] = c;&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

