#include "testApp.h" //-------------------------------------------------------------- void testApp::setup(){ ofSetVerticalSync(true); ofSetFrameRate(60); ofBackground(255, 255, 255); start = false; } //-------------------------------------------------------------- void testApp::update(){ if (start == true) { for (int i=0; i<50; i++) { elRect[i].update(); } } } //-------------------------------------------------------------- void testApp::draw(){ if (start == true) { for (int i=0; i<50; i++) { elRect[i].draw(); } } } //-------------------------------------------------------------- void testApp::mousePressed(int x, int y, int button){ if (start != true) start = true; for (int i=0; i<50; i++) { elRect[i].init(x, y); } }