Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example-threaded/src/ofApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ void ofApp::draw(){
ofBackground(0);
if(playing){
//get the frame based on the current time and draw it
sequence.getFrameForTime(ofGetElapsedTimef())->draw(0,0);
sequence.getTextureForTime(ofGetElapsedTimef())->draw(0,0);
}
else {
//get the sequence frame that maps to the mouseX position
float percent = ofMap(mouseX, 0, ofGetWidth(), 0, 1.0, true);

//draw it.
sequence.getFrameAtPercent(percent)->draw(0, 0);
sequence.getTextureForPercent(percent)->draw(0, 0);
}
}
}
Expand Down