| 90 | } |
| 91 | |
| 92 | void ofApp::update() |
| 93 | { |
| 94 | // append a random value to the plotter within its range // |
| 95 | // plotter->setValue(ofRandom(plotter->getMin()*.5, plotter->getMax()*.5)); |
| 96 | float v = ofRandom(plotter->getMin(), plotter->getMax()); |
| 97 | plotter->setValue(v); |
| 98 | for(int i=0; i<components.size(); i++) components[i]->update(); |
| 99 | } |
| 100 | |
| 101 | void ofApp::draw() |
| 102 | { |