| 48 | } |
| 49 | |
| 50 | void CenterState::update( const WordNode ¤tNode ) |
| 51 | { |
| 52 | int numCircles = mCircles.size(); |
| 53 | |
| 54 | int index = 0; |
| 55 | for( list<Circle>::reverse_iterator circleIt = mCircles.rbegin(); circleIt != mCircles.rend(); ++circleIt ){ |
| 56 | if( mCounter%( std::max( numCircles * 6, 24 ) ) == index * 4 ){ |
| 57 | app::timeline().apply( &circleIt->mRadius, circleIt->mRadiusDest + 30.0f, 0.25f, EaseOutQuad() ); |
| 58 | app::timeline().appendTo( &circleIt->mRadius, circleIt->mRadiusDest, 0.25f, EaseInOutQuad() ); |
| 59 | |
| 60 | app::timeline().apply( &circleIt->mColor, circleIt->mColorDest * 2.0f, 0.25f, EaseOutQuad() ); |
| 61 | app::timeline().appendTo( &circleIt->mColor, circleIt->mColorDest, 0.25f, EaseInOutQuad() ); |
| 62 | } |
| 63 | index ++; |
| 64 | } |
| 65 | |
| 66 | |
| 67 | mCounter ++; |
| 68 | } |
| 69 | |
| 70 | void CenterState::draw() |
| 71 | { |
nothing calls this directly
no test coverage detected