nature-of-code / noc-examples-processing

Repository for example code from The Nature of Code book
MIT License
2.56k stars 951 forks source link

For particle systems - iterator needs to be explicitly called. #34

Closed kevincannon closed 11 years ago

kevincannon commented 11 years ago

Since Processing 2, you need to import the iterator class explicitly to handle it.

import java.util.Iterator;

shiffman commented 11 years ago

thanks for simplicity i've been removing iterator and just using a for loop from all the examples (though it's still in the book text). if you see it in one still, please file an issue and note the specific example.