From 95f76397cad6a9a32fb2a5d5f067b45adff21334 Mon Sep 17 00:00:00 2001 From: Abe Pazos Date: Thu, 11 May 2017 18:25:08 +0200 Subject: [PATCH] Fix typos --- examples/events/simpleTimerEventExample/src/ofApp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/events/simpleTimerEventExample/src/ofApp.cpp b/examples/events/simpleTimerEventExample/src/ofApp.cpp index 79b5d1c0ce9..b4cb39dce40 100644 --- a/examples/events/simpleTimerEventExample/src/ofApp.cpp +++ b/examples/events/simpleTimerEventExample/src/ofApp.cpp @@ -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); @@ -116,4 +116,4 @@ void ofApp::windowResized(int w, int h){ //-------------------------------------------------------------- void ofApp::dragEvent(ofDragInfo dragInfo){ -} \ No newline at end of file +}