| 52 | } |
| 53 | |
| 54 | void Swatch::assemble( Timeline &timeline ) |
| 55 | { |
| 56 | float dur = 0.2f; |
| 57 | // mPos = mAnchorPos + vec2( 15.0f, 0.0f ); |
| 58 | timeline.apply( &mPos, mAnchorPos, dur, EaseOutAtan( 10 ) ).finishFn( bind( &Swatch::setDeselected, this ) ); |
| 59 | timeline.apply( &mScale, 1.0f, dur, EaseOutAtan( 10 ) ); |
| 60 | } |
| 61 | |
| 62 | void Swatch::draw() const |
| 63 | { |
no test coverage detected