// Inspired and Modified code from http://itp.nyu.edu/~ttn206/icm/week3/crosses_moving/ // By Lisa Cho and Yonatan Kelib. // We created a array to simplfy the code and make it more efficent...we cut close to 30 lines of code from the original code // Teamwork is awesome :-) Cross[] cross; int num; void setup () { size (500,300); num = 30; cross = new Cross[num]; for (int i=0; i<30; i++) { cross[i] = new Cross(color(random(200)),random(width),random(height),random(i*2),random(i+5)); } } void draw () { framerate (10); background (112,128,144); rectMode (CENTER); for(int i=0; i width) { xpos = 0; } } }