MCPcopy Create free account
hub / github.com/YCAMInterlab/Duration / draw

Method draw

DurationRemote/src/testApp.cpp:210–228  ·  view source on GitHub ↗

--------------------------------------------------------------

Source from the content-addressed store, hash-verified

208
209//--------------------------------------------------------------
210void testApp::draw(){
211 ofPushStyle();
212
213 if(hoveringSeek){
214 ofFill();
215 ofSetColor(blueColor, 75+50 * sin(ofGetElapsedTimef()*10)*.5+.5);
216 ofRect(seekRect);
217 }
218
219 ofNoFill();
220 ofSetColor(redColor);
221 ofRect(seekRect);
222
223 ofSetLineWidth(3);
224 ofLine(seekRect.x + seekPercent*seekRect.width, seekRect.getMinY(),
225 seekRect.x + seekPercent*seekRect.width, seekRect.getMaxY());
226
227 ofPopStyle();
228}
229
230//--------------------------------------------------------------
231void testApp::keyPressed(int key){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected