MCPcopy Create free account
hub / github.com/cinder/Cinder / update

Method update

samples/_timeline/VisualDictionary/src/CenterState.cpp:50–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void CenterState::update( const WordNode &currentNode )
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
70void CenterState::draw()
71{

Callers

nothing calls this directly

Calls 8

EaseOutQuadClass · 0.85
EaseInOutQuadClass · 0.85
rbeginMethod · 0.80
rendMethod · 0.80
appendToMethod · 0.80
maxFunction · 0.50
sizeMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected