|
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
|
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.
|
|
|
|
|