cycling through an object array
in
Programming Questions
•
10 months ago
This is pretty easy in JS, but totally lost in Processing on how to do this here is my assumption:
- void keyPressed() {
- int count = 0;
- model.shapeMode(modelType[count]);
- noStroke();
- void[] modelType = { LINES, POINTS, TRIANGLES } //assuming these are objects
- count++;
- }
1