From 5c31cea53d2686beec76017b5a77be77a555e052 Mon Sep 17 00:00:00 2001 From: Edward Taylor Date: Thu, 3 Oct 2019 09:31:04 +1300 Subject: [PATCH] fixed undefined behaviour between modes (stroke) --- system_runner.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system_runner.js b/system_runner.js index d5c78c7..32d2f32 100755 --- a/system_runner.js +++ b/system_runner.js @@ -151,6 +151,7 @@ function draw() { let remainder = secondsRemaining - intSecs; let curAngle = map(remainder, 0, 1, 630, 270); // print(secondsRemaining, intSecs, remainder, curAngle); + push() noStroke(); fill(200); arc(width/2, height/2, 400, 400, curAngle, curAngle+10); @@ -159,6 +160,7 @@ function draw() { textSize(200); textAlign(CENTER, CENTER); text(intSecs, width/2, height/2); + pop() } // text("Song starting in: " + secondsRemaining, width/2, height/2) }