Website,  Documentation,  Book Bugs - Processing Discourse board_WebsiteBugs.html Website,  Documentation,  Book Bugs - Processing Discourse en-us Processing Discourse Thu, 22 Mar 2012 06:34:25 +0000 http://blogs.law.harvard.edu/tech/rss 30 PGraphicsPDF num_1218674750.html Processing Discourse/Website,  Documentation,  Book Bugs num_1218674750.html Fri, 03 Jun 2011 08:47:08 +0000 <b><a class="message" href="num_1218674750.html#1">fry wrote</a> on Aug 14<sup>th</sup>, 2008, 1:44pm:</b><br /><div class="quote" style="width: 90%">sorry about that, it looks like those examples need to be cleaned up a bit. here's a fixed version of the one you mentioned:<br /><br /> <b>Quote:</b><br /><div class="quote" style="width: 90%; overflow: auto;"><span style="color: #CC6600;">import</span> processing.pdf.*;<br /><br /><span style="color: #996600;">boolean</span> recording;<br />PGraphicsPDF pdf;<br /><br /><span style="color: #CC6600;">void</span> <span style="color: #996600;">setup</span>() &#123;<br />  <span style="color: #996600;">size</span>(400, 400);<br />  pdf = (PGraphicsPDF) <span style="color: #996600;">createGraphics</span>(<span style="color: #CC0000;">width</span>, <span style="color: #CC0000;">height</span>, <span style="color: #CC0000;">PDF</span>, <span style="color: #CC0000;">&quot;pause-resume.pdf&quot;</span>);<br />&#125;<br /><br /><span style="color: #CC6600;">void</span> <span style="color: #996600;">draw</span>() &#123;<br />  <span style="color: #777755;">// Be sure not to call background, otherwise your file</span><br />  <span style="color: #777755;">// will just accumulate lots of mess, only to become invisible</span><br />   <br />  <span style="color: #777755;">// Draw something good here</span><br />  <span style="color: #CC6600;">if</span> (<span style="color: #CC0000;">mousePressed</span>) &#123;<br />    <span style="color: #996600;">line</span>(<span style="color: #CC0000;">pmouseX</span>, <span style="color: #CC0000;">pmouseY</span>, <span style="color: #CC0000;">mouseX</span>, <span style="color: #CC0000;">mouseY</span>);<br />  &#125;<br />&#125;<br /><br /><span style="color: #CC6600;">void</span> <span style="color: #CC0000;">keyPressed</span>() &#123;<br />  <span style="color: #CC6600;">if</span> (<span style="color: #CC0000;">key</span> == <span style="color: #CC0000;">'r'</span>) &#123;<br />    <span style="color: #CC6600;">if</span> (recording) &#123;<br /> &nbsp; &nbsp; &nbsp;<span style="color: #996600;">endRecord</span>();<br /> &nbsp; &nbsp; &nbsp;<span style="color: #996600;">println</span>(<span style="color: #CC0000;">&quot;Recording stopped.&quot;</span>);<br /> &nbsp; &nbsp; &nbsp;recording = <span style="color: #CC6600;">false</span>;<br />    &#125; <span style="color: #CC6600;">else</span> &#123;<br /> &nbsp; &nbsp; &nbsp;<span style="color: #996600;">beginRecord</span>(pdf);<br /> &nbsp; &nbsp; &nbsp;<span style="color: #996600;">println</span>(<span style="color: #CC0000;">&quot;Recording started.&quot;</span>);<br /> &nbsp; &nbsp; &nbsp;recording = <span style="color: #CC6600;">true</span>;<br />    &#125;<br />  &#125; <span style="color: #CC6600;">else</span> <span style="color: #CC6600;">if</span> (<span style="color: #CC0000;">key</span> == <span style="color: #CC0000;">'q'</span>) &#123;<br />    <span style="color: #CC6600;">if</span> (recording) &#123;<br /> &nbsp; &nbsp; &nbsp;<span style="color: #996600;">endRecord</span>();<br />    &#125;<br />    <span style="color: #996600;">exit</span>();<br />  &#125; <br />&#125;<br /><br /> </div> </div><br /><br />Unfortunately this example overwrites the previous recording. I mean you can keep in the PDF file only the last sequence of your drawing.<br />Is there a way you could append the lines over and over or even press a key for nextPage() or something<br /><br />Thanks in advance Can't edit my profile options num_1276794576.html Processing Discourse/Website,  Documentation,  Book Bugs num_1276794576.html Thu, 17 Jun 2010 10:54:44 +0000 this problem will probably solve itself as we are going to start from scratch with a new discussion board <br />http://processing.org/discourse/yabb2/num_1276152126_15.html#25 Where to CHANGE the EMAIL.adress? num_1276467987.html Processing Discourse/Website,  Documentation,  Book Bugs num_1276467987.html Sun, 13 Jun 2010 15:26:27 +0000 hoi, <br /><br />i want to change my email.adress, but i cant find the option?!<br /><br />am i blind?<br /><br />greetings Eclipse tutorial suggestion num_1231377689.html Processing Discourse/Website,  Documentation,  Book Bugs num_1231377689.html Fri, 11 Jun 2010 02:50:49 +0000 I tried putting the data folder to the root of my java project and it's not working either. Could be, because I'm on Windows... <br /><br />When trying to install ProClipsing it always gets stuck at 5% completion and there's no download folder available to manually install it.<br /><br />...but thank you so far. Forum bug num_1274447578.html Processing Discourse/Website,  Documentation,  Book Bugs num_1274447578.html Wed, 09 Jun 2010 05:23:53 +0000 Hey, a forum member calles &quot;jazz&quot; just wrote me, that her account is still not available... just in case you can look up a given name and reactivate the account. Error in example of Spotlight example in Reference num_1275753573.html Processing Discourse/Website,  Documentation,  Book Bugs num_1275753573.html Sat, 05 Jun 2010 08:59:33 +0000 The second example for spotlight has the following errors:<br /> 1. Does not include the size command with the 3d rendering engine specified, without the 3d engine specified spotlight does not work<br /> 2. The first line of the example is the number 1000, this obviously will not compile<br /> 3. Uses an undefined variable, which again causes a compilation error<br /><br />Here is the cleaned up code which matches the example image: <br /><br />size(100,100, P3D);<br />int concentration=300;<br />background(0);<br />noStroke();<br />spotLight(51, 102, 126, 50, 50, 400, 0, 0, -1, PI/16, concentration);<br />translate(80, 50, 0);<br />sphere(30);<br /><br />Regards,<br /><br />Patrick.<br /> Edit my Profile (triss) › Options not working num_1275735091.html Processing Discourse/Website,  Documentation,  Book Bugs num_1275735091.html Sat, 05 Jun 2010 03:51:31 +0000 I'm told:<br /><br />Error: There is an invalid character detected in the your personal userpic url or picture name.<br /><br />every time i try to update my settings on the Edit my Profile &nbsp;› Options page.<br /><br />i'd really like to be able to change the time view and get email notifications.<br /><br />how can i do this?<br /><br />Cheers,<br />tris Textured Sphere Example num_1274893475.html Processing Discourse/Website,  Documentation,  Book Bugs num_1274893475.html Wed, 26 May 2010 10:06:15 +0000 you can substitute the MercatorMap.jpg image by the following link to make it work:<br /><br />http://upload.wikimedia.org/wikipedia/commons/7/74/Mercator-projection.jpg<br /><br /> Scrollbar example. num_1273841807.html Processing Discourse/Website,  Documentation,  Book Bugs num_1273841807.html Fri, 14 May 2010 05:56:47 +0000 In the scrollbar example at learning/topics/scrollbar.html it is possible to click on the top slider and then mouse over the bottom slider, activating both sliders simultaneously.<br /><br />I have adapted this example to make a row of vertical sliders, but keep activating them all at once (undesirable!)<br /><br />How to adapt the code at the example above to prevent both bars being activated? <br /><br /> Typo in TExtMode () refernce num_1273764002.html Processing Discourse/Website,  Documentation,  Book Bugs num_1273764002.html Thu, 13 May 2010 08:20:02 +0000 here :<br /><br /><a href="file:///Applications/Processing.app/Contents/Resources/Java/reference/textMode_.html" target="_blank">file:///Applications/Processing.app/Contents/Resources/Java/reference/textMode_.html</a><br /><br /><br />Only is repeated twice , is this a typo <br /><br /><br /><i>The SHAPE mode draws text using the the glyph outlines of individual characters rather than as textures. This mode is <b>only only</b> supported with the PDF and OPENGL renderer settings. With the PDF renderer, you must call textMode(SHAPE) before any other drawing occurs. If the outlines are not available, then textMode(SHAPE) will be ignored and textMode(MODEL) will be used instead.</i> <br /><br /><br /><br /><br /><br /> <img src="yabbfiles/Templates/Forum/processing_one/wink.gif" border="0" alt="Wink" title="Wink" /><br /><br /><br /> Spam :( num_1265624003.html Processing Discourse/Website,  Documentation,  Book Bugs num_1265624003.html Tue, 11 May 2010 02:41:58 +0000 Removed (it was user 'sudy'). Thanks. I can't login processing bugzilla. num_1267857613.html Processing Discourse/Website,  Documentation,  Book Bugs num_1267857613.html Mon, 10 May 2010 01:40:17 +0000 <b><a class="message" href="num_1267857613.html#7">fjen wrote</a> on May 2<sup>nd</sup>, 2010, 12:17am:</b><br /><div class="quote" style="width: 90%">Please let me know if this works for you!<br />F </div><br /><br />Ah, yes - that worked, thanks!<br /><br />It took me a while to see the private username, so for anyone who encounters this thread, it's white text on a grey background, with a little contact book icon on the left.<br /><br /> <b>Quote:</b><br /><div class="quote" style="width: 90%; overflow: auto;"><span style="color: #ffffff;"><b>Edit my Profile (&lt;thisname&gt;)</b></span> </div><br /><br />Cheers,<br />Dave. if link broken num_1271122351.html Processing Discourse/Website,  Documentation,  Book Bugs num_1271122351.html Sun, 09 May 2010 20:42:06 +0000 in the switch() reference you have a link for if() instead of if in the Related area. &nbsp;i'm new to Processing but i believe that's an error. Experiencing Very Slow Connection with Processing num_1272979929.html Processing Discourse/Website,  Documentation,  Book Bugs num_1272979929.html Tue, 04 May 2010 08:09:28 +0000 I experienced that as well (from France), with a refresh of the Discourse main page taking sometime several minutes or displaying most of the page but stuck somewhere near the end.<br /><br />I usually don't make a fuzz about these glitches as it might be a maintenance phase, some hip-cup from the host or something.<br />Seems back to normal now. Error in "Many Bouncing Balls" num_1271232430.html Processing Discourse/Website,  Documentation,  Book Bugs num_1271232430.html Wed, 28 Apr 2010 00:01:07 +0000 Thx for the response Ira.<br /><br />Your book is GREAT by the way.<br /><br />Cheers Thomas from Denmark image() reference num_1271497763.html Processing Discourse/Website,  Documentation,  Book Bugs num_1271497763.html Sat, 17 Apr 2010 02:49:23 +0000 <b>Quote:</b><br /><div class="quote" style="width: 90%; overflow: auto;">Displays images to the screen. <span style="color: #0000ff;">The images must be in the sketch's &quot;data&quot; directory to load correctly. Select &quot;Add file...&quot; from the &quot;Sketch&quot; menu to add the image.</span> Processing currently works with GIF, JPEG, and Targa images. The color of an image may be modified with the tint()  function and if a GIF has transparency, it will maintain its transparency. </div><br />I think the blue part belongs more to loadImage() page. The image formats sentence too, but I wanted to point out that it misses PNG format... And the &quot;<i>if a GIF has transparency</i>&quot; part too. Well, it should be &quot;if image has transparency&quot;, since the image can be created from scratch. createGraphics ref is inaccurate num_1271238026.html Processing Discourse/Website,  Documentation,  Book Bugs num_1271238026.html Fri, 16 Apr 2010 14:32:17 +0000 Thanks. Updated in the file, will change with the next site update and software release. nitpicking the documentation for millis() num_1271440851.html Processing Discourse/Website,  Documentation,  Book Bugs num_1271440851.html Fri, 16 Apr 2010 14:30:12 +0000 Good catch. It's fixed in the file, will update online with the next version. Optimization metaball effect num_1270296593.html Processing Discourse/Website,  Documentation,  Book Bugs num_1270296593.html Wed, 14 Apr 2010 12:43:41 +0000 What about this one (blackhole metaballs surrounded by metastars):<br /> <b>Code:</b><pre class="code">&#47;*<br &#47;>Metaball effect created by &#068;&#46;Juurlink<br &#47;>&#068;ate&#58; 14&#45;04&#45;2010<br &#47;>*&#47;<br &#47;>interface Metamorph<br &#47;>&#123;<br &#47;>  public int getSum&#40;int x,int y&#41;;<br &#47;>  public void move&#40;int angle&#41;;<br &#47;>&#125;<br &#47;><br &#47;>class Metaball implements Metamorph<br &#47;>&#123;<br &#47;>  private int _x,_y,_radius;<br &#47;>  private int _sangle;<br &#47;>  private int _fx,_fy;<br &#47;>  private int _domx,_domy;<br &#47;>  <br &#47;>  public Metaball&#40;int x,int y,int radius&#41;<br &#47;>  &#123;<br &#47;>    _x=x;    <br &#47;>    _y=y;<br &#47;>    _radius=radius;<br &#47;>    _sangle=int&#40;random&#40;0,359&#41;&#41;;<br &#47;>    _fx=int&#40;random&#40;1,4&#41;&#41;;<br &#47;>    _fy=int&#40;random&#40;1,4&#41;&#41;;    <br &#47;>    _domx=w&#47;2&#45;_radius*2;<br &#47;>    _domx&#45;=int&#40;random&#40;0,w&#47;2&#45;_radius*2&#41;&#41;;<br &#47;>    _domy=h&#47;2&#45;_radius*2;<br &#47;>    _domy&#45;=int&#40;random&#40;0,h&#47;2&#45;_radius*2&#41;&#41;;<br &#47;>  &#125;<br &#47;>  <br &#47;>  public int getSum&#40;int x,int y&#41;<br &#47;>  &#123;<br &#47;>    return int&#40;&#40;_radius&lt;&lt;25&#41;&#47;&#40;sqx&#91;abs&#40;x&#45;_x&#41;%w&#93;+sqy&#91;abs&#40;y&#45;_y&#41;%h&#93;+1&#41;&#41;;       <br &#47;>  &#125;<br &#47;>  <br &#47;>  public int getX&#40;&#41;&#123;return _x;&#125;<br &#47;>  public int getY&#40;&#41;&#123;return _y;&#125;<br &#47;>  <br &#47;>  public void move&#40;int angle&#41;<br &#47;>  &#123;<br &#47;>    _x=&#40;_domx*sintbl&#91;&#40;&#40;angle+_sangle&#41;*_fx&#41;%360&#93;&#41;&gt;&gt;11;<br &#47;>    _x+=w&#47;2;<br &#47;>    _y=&#40;_domy*costbl&#91;&#40;&#40;angle+_sangle&#41;*_fy&#41;%360&#93;&#41;&gt;&gt;11;<br &#47;>    _y+=h&#47;2;        <br &#47;>  &#125;<br &#47;>&#125;<br &#47;><br &#47;>class Metastar implements Metamorph<br &#47;>&#123;<br &#47;>  private int _x,_y,_radius;<br &#47;>  private int _sangle;<br &#47;>  private int _fx,_fy;<br &#47;>  private int _domx,_domy;<br &#47;>  <br &#47;>  public Metastar&#40;int x,int y,int radius&#41;<br &#47;>  &#123;<br &#47;>    _x=x;    <br &#47;>    _y=y;<br &#47;>    _radius=radius;<br &#47;>    _sangle=int&#40;random&#40;0,359&#41;&#41;;<br &#47;>    _fx=int&#40;random&#40;1,4&#41;&#41;;<br &#47;>    _fy=int&#40;random&#40;1,4&#41;&#41;;    <br &#47;>    _domx=w&#47;2&#45;_radius*2;<br &#47;>    _domy=h&#47;2&#45;_radius*2;<br &#47;>  &#125;<br &#47;>  <br &#47;>  public int getSum&#40;int x,int y&#41;<br &#47;>  &#123;<br &#47;>    return &#40;_radius*100&#41;&#47;&#40;abs&#40;x&#45;_x&#41;+abs&#40;y&#45;_y&#41;+1&#41;;<br &#47;>  &#125;<br &#47;>  <br &#47;>  public int getX&#40;&#41;&#123;return _x;&#125;<br &#47;>  public int getY&#40;&#41;&#123;return _y;&#125;<br &#47;>  <br &#47;>  public void move&#40;int angle&#41;<br &#47;>  &#123;<br &#47;>    _x=&#40;_domx*sintbl&#91;&#40;&#40;angle+_sangle&#41;*_fx&#41;%360&#93;&#41;&gt;&gt;11;<br &#47;>    _x+=w&#47;2;<br &#47;>    _y=&#40;_domy*costbl&#91;&#40;&#40;angle+_sangle&#41;*_fy&#41;%360&#93;&#41;&gt;&gt;11;<br &#47;>    _y+=h&#47;2;        <br &#47;>  &#125;<br &#47;>&#125;<br &#47;><br &#47;>PImage buffer;<br &#47;>long&#91;&#93; sqx,sqy;<br &#47;>color&#91;&#93; palette;<br &#47;>int angle=0;<br &#47;>int w,h;<br &#47;>int&#91;&#93; sintbl,costbl;<br &#47;><br &#47;>Metamorph&#91;&#93; balls;<br &#47;><br &#47;>void setup&#40;&#41;<br &#47;>&#123;<br &#47;>  w=640&#47;4;<br &#47;>  h=480&#47;4;<br &#47;>  size&#40;w*4,h*4,P2&#068;&#41;;    <br &#47;>  buffer=createImage&#40;w,h,RGB&#41;;<br &#47;>  sqx=new long&#91;w&#93;;<br &#47;>  sqy=new long&#91;h&#93;;<br &#47;>  for&#40;int x=0;x&lt;w;x++&#41;<br &#47;>  &#123;<br &#47;>    sqx&#91;x&#93;=int&#40;sq&#40;x&#41;*4096&#41;;<br &#47;>  &#125;<br &#47;>  for&#40;int y=0;y&lt;h;y++&#41;<br &#47;>  &#123;<br &#47;>    sqy&#91;y&#93;=int&#40;sq&#40;y&#41;*4096&#41;;<br &#47;>  &#125;<br &#47;>  palette=new color&#91;256*3&#93;;<br &#47;>  for&#40;int i=0;i&lt;256;i++&#41;<br &#47;>  &#123;<br &#47;>    palette&#91;i&#93;=color&#40;0,0,i&#41;;<br &#47;>    palette&#91;i+256&#93;=color&#40;i,0,255&#41;;<br &#47;>    palette&#91;i+512&#93;=color&#40;255,i,255&#41;;<br &#47;>  &#125;<br &#47;>  <br &#47;>  sintbl=new int&#91;360&#93;;<br &#47;>  costbl=new int&#91;360&#93;;<br &#47;>  <br &#47;>  for&#40;int i=0;i&lt;360;i++&#41;<br &#47;>  &#123;<br &#47;>    sintbl&#91;i&#93;=int&#40;sin&#40;radians&#40;i&#41;&#41;*2048&#41;;<br &#47;>    costbl&#91;i&#93;=int&#40;cos&#40;radians&#40;i&#41;&#41;*2048&#41;;<br &#47;>  &#125;<br &#47;>  <br &#47;>  balls=new Metamorph&#91;50&#93;;<br &#47;>  for&#40;int i=0;i&lt;10;i++&#41;<br &#47;>  &#123;<br &#47;>    balls&#91;i&#93;=new Metaball&#40;int&#40;random&#40;0,w&#41;&#41;,int&#40;random&#40;0,h&#41;&#41;,int&#40;random&#40;2,5&#41;&#41;&#41;;<br &#47;>  &#125; <br &#47;>  for&#40;int i=0;i&lt;40;i++&#41;<br &#47;>  &#123;<br &#47;>    balls&#91;i+10&#93;=new Metastar&#40;int&#40;random&#40;0,w&#41;&#41;,int&#40;random&#40;0,h&#41;&#41;,int&#40;random&#40;3,8&#41;&#41;&#41;;    <br &#47;>  &#125;<br &#47;>&#125;<br &#47;><br &#47;>void draw&#40;&#41;<br &#47;>&#123;<br &#47;>  renderBalls&#40;&#41;;<br &#47;>  for&#40;int i=0;i&lt;balls&#46;length;i++&#41;<br &#47;>  &#123;<br &#47;>    balls&#91;i&#93;&#46;move&#40;angle&#41;;<br &#47;>  &#125;<br &#47;>  angle++;<br &#47;>&#125;<br &#47;><br &#47;>void renderBalls&#40;&#41;<br &#47;>&#123;<br &#47;>  buffer&#46;loadPixels&#40;&#41;;<br &#47;>  for&#40;int x=0;x&lt;w;x++&#41;<br &#47;>  &#123;<br &#47;>    for&#40;int y=0;y&lt;h;y++&#41;<br &#47;>    &#123;<br &#47;>      int sum=0;<br &#47;>      for&#40;int i=0;i&lt;balls&#46;length;i++&#41;<br &#47;>      &#123;<br &#47;>          if&#40;balls&#91;i&#93; instanceof Metastar&#41;<br &#47;>            sum+=balls&#91;i&#93;&#46;getSum&#40;x,y&#41;;<br &#47;>          else<br &#47;>            sum&#45;=balls&#91;i&#93;&#46;getSum&#40;x,y&#41;;<br &#47;>      &#125;       <br &#47;>      buffer&#46;pixels&#91;y*w+x&#93;=palette&#91;constrain&#40;sum,0,palette&#46;length&#45;1&#41;&#93;;<br &#47;>    &#125;<br &#47;>  &#125;  <br &#47;>  buffer&#46;updatePixels&#40;&#41;;  <br &#47;>  image&#40;buffer,0,0,w*4,h*4&#41;;<br &#47;>&#125;<br &#47;> </pre> processing + eclipse on snow leopard num_1268885435.html Processing Discourse/Website,  Documentation,  Book Bugs num_1268885435.html Sat, 10 Apr 2010 05:20:09 +0000 <b><a class="message" href="num_1268885435.html#0">alex p wrote</a> on Mar 17<sup>th</sup>, 2010, 8:10pm:</b><br /><div class="quote" style="width: 90%">everything worked, up until i tried using the rx-tx library, and then i ran into issues. the basic problem is that the native library that ships with processing is a universal binary that has ppc and i386. the jvms that come with snow leopard are all x64, and won't load either of those two architectures. you need to get a copy of the 1.5 jvm that came with leopard, and make your eclipse project use it.<br /><br />more detail here:<br />wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard<br /><br />to change the vm, right-click on the 'JRE System Library' element in package explorer, and select the appropriate jvm. </div><br /><br />No, that's absolutely not correct. There is a 32-bit version of the JVM on Snow Leopard, use that. The simple explanation is that you add -d32 on the command line, but if you're going outside the Processing environment, you need to read up on that yourself. If you're going to develop Java code, you need to research how to be a Java developer.<br /><br />Again, please *do not* ever install Java 1.5 on Snow Leopard:<br />http://processing.org/discourse/yabb2/num_1262745899.html 2D Transformations code error num_1267203789.html Processing Discourse/Website,  Documentation,  Book Bugs num_1267203789.html daniel.shiffman@nyu.edu (Daniel Shiffman) Wed, 07 Apr 2010 18:38:00 +0000 Fixed, thanks for pointing out the error! minor documentation errors on "lights()" page num_1269393067.html Processing Discourse/Website,  Documentation,  Book Bugs num_1269393067.html Wed, 07 Apr 2010 15:12:00 +0000 Thank you. Fixed in the file, will make it online with the next update. Specifics to be showcased in the Exhibition num_1267787828.html Processing Discourse/Website,  Documentation,  Book Bugs num_1267787828.html Wed, 07 Apr 2010 15:03:45 +0000 I curate the Exhibition. There are a number of factors but the most important are quality and diversity. I try to make sure a wide range of projects are featured and all the projects are impressively well conceived within their domains. I follow all of the different sites where people post their work (linked on the homepage) as well as the activity on this site. Color Section of Tutorial by Daniel Shiffman num_1270326368.html Processing Discourse/Website,  Documentation,  Book Bugs num_1270326368.html Sun, 04 Apr 2010 07:20:46 +0000 ah size was the problem couldnt figure it out <img src="yabbfiles/Templates/Forum/processing_one/smiley.gif" border="0" alt="Smiley" title="Smiley" /> example error - video num_1270301281.html Processing Discourse/Website,  Documentation,  Book Bugs num_1270301281.html Sat, 03 Apr 2010 06:28:01 +0000 there is a error at the<br />library example -&gt; video (capture) -&gt; GettingStartedCapture<br />example.<br />- at line 19 - 20 the capture.list(); and<br />- at line 26 camera.settings(); doesn't work.<br /><br />used processing version 1,1<br /><br /><br /><br />ORIGINAL CODE<br /><br />/**<br /> * Getting Started with Capture.<br /> * <br /> * Reading and displaying an image from an attached Capture device. <br /> */ <br /> <br />import processing.video.*;<br /><br />Capture cam;<br /><br />void setup() &#123;<br />  size(640, 480);<br /><br />  // If no device is specified, will just use the default.<br />  cam = new Capture(this, 320, 240);<br /><br />  // To use another device (i.e. if the default device causes an error),  <br />  // list all available capture devices to the console to find your camera.<br />  <span class="highlight">String[] devices = Capture.list();<br />  println(devices);</span><br />  <br />  // Change devices[0] to the proper index for your camera.<br />  //cam = new Capture(this, width, height, devices[0]);<br /><br />  // Opens the settings page for this capture device.<br />  <span class="highlight">//camera.settings();</span><br />&#125;<br /><br /><br />void draw() &#123;<br />  if (cam.available() == true) &#123;<br />    cam.read();<br />    image(cam, 160, 100);<br />    // The following does the same, and is faster when just drawing the image<br />    // without any additional resizing, transformations, or tint.<br />    //set(160, 100, cam);<br />  &#125;<br />&#125; <br /><br /><br /><br />CORRECTED CODE<br /><br />/**<br /> * Getting Started with Capture.<br /> * <br /> * Reading and displaying an image from an attached Capture device. <br /> */ <br /> <br />import processing.video.*;<br /><br />Capture cam;<br /><br />void setup() &#123;<br />  size(640, 480);<br /><br />  // To use another device (i.e. if the default device causes an error),  <br />  // list all available capture devices to the console to find your camera.<br />  <span class="highlight">String[] devices = Capture.list();<br />  println(devices);</span> <br />  <br />  // If no device is specified, will just use the default.<br />  cam = new Capture(this, 320, 240);<br />  <br />  // Change devices[0] to the proper index for your camera.<br />  //cam = new Capture(this, width, height, devices[0]);<br /><br />  // Opens the settings page for this capture device.<br /> <span class="highlight"> //camera.settings();</span><br />&#125;<br /><br /><br />void draw() &#123;<br />  if (cam.available() == true) &#123;<br />    cam.read();<br />    image(cam, 160, 100);<br />    // The following does the same, and is faster when just drawing the image<br />    // without any additional resizing, transformations, or tint.<br />    //set(160, 100, cam);<br />  &#125;<br />&#125;