//------------------------------------------------------------- void testApp::draw(){ ofBackground(0); ofSetColor(255, 255, 255, 255); imageBack.draw(300, 0, 460, 717); cout<< scaledVol << endl; //-----------------sound----------------------- easyCam.begin(); ofPushMatrix(); ofTranslate(-ofGetWidth()/2, -ofGetHeight()/2); meshOne = pixelManipulate(imageOne, meshPassOne, 50, scaledVol*ofGetElapsedTimef()); meshOne.draw(); ofPopMatrix(); easyCam.end(); //-------------------mesh---------------------------- }
//-------------------------------------------------------------- void testApp::draw(){ //-----------------sound----------------------- // ofCircle(200, 200, scaledVol * 330.0f); cout<< scaledVol << endl; //-----------------sound----------------------- //-------------------mesh---------------------------- ofColor centerColor = ofColor(85, 78, 68); ofColor edgeColor(0, 0, 0); ofBackgroundGradient(centerColor, edgeColor, OF_GRADIENT_CIRCULAR); //3D view //left click to drag to rotate //right click to drag to zoom easyCam.begin(); ofPushMatrix(); ofTranslate(-ofGetWidth()/2, -ofGetHeight()/2); meshOne = pixelManipulate(imageOne, meshPassOne, 50, scaledVol); meshOne.draw(); ofPopMatrix(); easyCam.end(); //-------------------mesh---------------------------- }