void GuiInspectorGroup::animateToContents() { calculateHeights(); if(size() > 0) animateTo( mExpanded.extent.y ); else animateTo( mHeader.extent.y ); }
void ofxAnimatableOfPoint::animateToAfterDelay( ofPoint where, float delay ){ if (delay <= 0.0f){ animateTo(where); }else{ //originalTempPoint_ = getCurrentPosition(); targetTempPoint_ = where; ofxAnimatable::startAnimationAfterDelay(delay); } }
void ofxAnimatableFloat::animateToAfterDelay( float newVal, float delay ){ if (delay <= 0.0f){ animateTo(newVal); }else{ //originalTempVal_ = val(); targetTempVal_ = newVal; ofxAnimatable::startAnimationAfterDelay(delay); } }
void ofxAnimatableOfColor::startBlinking( float blinkDuration) { setRepeatType(LOOP_BACK_AND_FORTH); setCurve(EASE_IN_EASE_OUT); setAlphaOnly(0.0f); setDuration( blinkDuration ); ofColor c = getCurrentColor(); c.a = 255; animateTo( c ); }
void ofxAnimatableOfColor::fadeIn() { ofColor targetC = getCurrentColor(); if ( sizeof(targetC.r) == sizeof(float) ) targetC.a = (float)1.0f; else if ( sizeof(targetC.r) == sizeof(unsigned char) ) targetC.a = (unsigned char) numeric_limits<unsigned char>::max(); else if ( sizeof(targetC.r) == sizeof(unsigned short) ) targetC.a = (unsigned char) numeric_limits<unsigned short>::max(); animateTo( targetC ); }
void ofxAnimatableOfPoint::animateToIfFinished( ofPoint where ){ if (animating_ == false){ animateTo(where); } }
void ofxAnimatableOfPoint::startAfterWait(){ animateTo(targetTempPoint_); }
void ofxAnimatableFloat::startAfterWait(){ animateTo(targetTempVal_); }
void ofxAnimatableFloat::animateToIfFinished( float newVal ){ if ( animating_ == false ){ animateTo(newVal); } }
void ofxAnimatableOfColor::fadeOut() { ofColor targetC = getCurrentColor(); targetC.a = 0.0f; animateTo( targetC ); }
void ofxAnimatableOfColor::animateToIfFinished( ofColor col ) { if (animating_ == false) { animateTo( col ); } }
void ofxAnimatableOfColor::startAfterWait() { animateTo(targetTempColor_); }