Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hamoid committed May 11, 2017
1 parent 075316e commit 95f7639
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/events/simpleTimerEventExample/src/ofApp.cpp
Expand Up @@ -31,12 +31,12 @@ void ofApp::draw(){
ofSetColor(100);
ofDrawRectangle((ofGetWidth()-barWidth)/2, ofGetHeight()/2, barWidth, 30);

// get the percantage of the timer
// get the percentage of the timer
float pct = ofMap(timer, 0.0, endTime, 0.0, 1.0, true);
ofSetHexColor(0xf02589);
ofDrawRectangle((ofGetWidth()-barWidth)/2, ofGetHeight()/2, barWidth*pct, 30);

// draw the percantage
// draw the percentage
ofSetColor(20);
ofDrawBitmapString(ofToString(pct*100, 0)+"%", ((ofGetWidth()-barWidth)/2)+barWidth+10, (ofGetHeight()/2)+20);

Expand Down Expand Up @@ -116,4 +116,4 @@ void ofApp::windowResized(int w, int h){
//--------------------------------------------------------------
void ofApp::dragEvent(ofDragInfo dragInfo){

}
}

0 comments on commit 95f7639

Please sign in to comment.