From 9282ef2b25373347b39a440e8e37c38e280f1521 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 19 Apr 2023 12:34:26 +0100 Subject: fix phase minus --- nextus/src/vectorPlugin.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nextus') 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: "<