From a6f57c5972bf5dff48d442c4b8da11a6386f338a Mon Sep 17 00:00:00 2001 From: mattmcw Date: Sun, 25 Jul 2021 20:40:41 -0400 Subject: [PATCH] Run test 100000x as fast --- dvd_bounce_paths/dvd_bounce_paths.pde | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dvd_bounce_paths/dvd_bounce_paths.pde b/dvd_bounce_paths/dvd_bounce_paths.pde index 6382479..0da38d1 100644 --- a/dvd_bounce_paths/dvd_bounce_paths.pde +++ b/dvd_bounce_paths/dvd_bounce_paths.pde @@ -12,8 +12,8 @@ float ymax = 145.75; float xscale = 1080.0 / (xmax * 2.0); float yscale = 1920.0 / (ymax * 2.0); -float startx = 1;//566.0, 893.0 -float starty = 1; +float startx = 0;//566.0, 893.0 +float starty = 0; float x = 0.0; float y = 0.0; @@ -130,13 +130,13 @@ void draw () { startx++; if (startx >= 1079.0) { startx = 0; - starty++; + starty+=100; } if (starty >= 1920.0) { starty = 0; - frames++; + frames+=100; } - if (angle == startangle && abs(x - startx) < 5 && abs(y - starty ) < 5 ) { + if (angle == startangle && abs(x - startx) < 100 && abs(y - starty ) < 100 ) { ranOnce = true; } }