| 295 | } |
| 296 | |
| 297 | void InstascopeApp::imageLoaded() |
| 298 | { |
| 299 | mPhaseChangeCalled = true; |
| 300 | |
| 301 | // we don't want to wait on the first go around |
| 302 | int delayOffset = STILL_DUR; |
| 303 | if( mFirstRun ) { |
| 304 | mFirstRun = false; |
| 305 | delayOffset = 0; |
| 306 | } |
| 307 | |
| 308 | // This defines the length of time that we're in each phase |
| 309 | timeline().add( [&] { changePhase(0); }, timeline().getCurrentTime() + delayOffset); |
| 310 | timeline().add( [&] { changePhase(1); }, timeline().getCurrentTime() + delayOffset + MIRROR_DUR); |
| 311 | } |
| 312 | |
| 313 | void InstascopeApp::resetSample() |
| 314 | { |
nothing calls this directly
no test coverage detected