diff options
| author | Tim Redfern <tim@getdrop.com> | 2023-04-19 12:34:26 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2023-04-19 12:34:26 +0100 |
| commit | 9282ef2b25373347b39a440e8e37c38e280f1521 (patch) | |
| tree | 41417e7b252219f4214f3c1ef0cc353b6f18fd1e | |
| parent | 28718e114696f1d5d735992c29f8e0b1dd83a90d (diff) | |
fix phase minus
| -rw-r--r-- | nextus/src/vectorPlugin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nextus/src/vectorPlugin.h b/nextus/src/vectorPlugin.h index 94ea947..d71b8fa 100644 --- a/nextus/src/vectorPlugin.h +++ b/nextus/src/vectorPlugin.h @@ -91,7 +91,9 @@ class svgPanel: public vectorPanel{ timedelta=ofGetElapsedTimef()-last_frame_time; last_frame_time=ofGetElapsedTimef(); phase=fmod(phase+(timedelta*segmenter_speed),1); - //while(phase<1) phase+=1.0f; + while(phase<0) phase+=1.0f; + //what's the issue with segmenter in reverse + ofLog()<<"phase: "<<phase; } private: |
