FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Software Bugs
(Moderator: fry)
   strange iterator output
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: strange iterator output  (Read 328 times)
_C


strange iterator output
« on: Nov 23rd, 2004, 1:06am »

i got a strange output when i try to set  
the values higher then 20, the 'i' starts  
at any value but not 0:  
 
void setup() {
  clear();
  size(1024, 76;
  background(30);
 
  for(int i=0; i<20; i+=1) {
     for(int j=0; j<20; j+=1) {
   
 println(" i: "+i+" j: "+j);
   
 
 }
    }
   
}
 
any ideas?  
thanks  
c
 
TomC

WWW
Re: strange iterator output
« Reply #1 on: Nov 23rd, 2004, 1:11am »

The buffer is probably too small - it scrolled the first numbers off the screen.
 
Try adding a delay to see everything as it happens.
 
Pages: 1 

« Previous topic | Next topic »