example_aubioDemo/: use built-in colors
authorPaul Brossier <piem@piem.org>
Fri, 30 Oct 2015 15:57:12 +0000 (16:57 +0100)
committerPaul Brossier <piem@piem.org>
Fri, 30 Oct 2015 15:57:12 +0000 (16:57 +0100)
example_aubioDemo/src/ofApp.cpp

index 0fa096f..16b7ba4 100644 (file)
@@ -83,13 +83,13 @@ void ofApp::update(){
 void ofApp::draw(){
     // update beat info
     if (beat.received()) {
-        ofSetHexColor(0x00FF00);
+        ofSetColor(ofColor::green);
         ofRect(90,150,50,50);
     }
 
     // update onset info
     if (onset.received()) {
-        ofSetHexColor(0xFF0000);
+        ofSetColor(ofColor::red);
         ofRect(250 + 90,150,50,50);
         gotOnset = 1;
     } else {