From 2db18d66785e9fb73408924db378636995c481c6 Mon Sep 17 00:00:00 2001 From: Ronin0000 <89286474+Ronin0000@users.noreply.github.com> Date: Tue, 19 Apr 2022 16:37:24 -0700 Subject: [PATCH] Update appb2.js --- apps/choozi/appb2.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/choozi/appb2.js b/apps/choozi/appb2.js index d5c542be3..5f217f638 100644 --- a/apps/choozi/appb2.js +++ b/apps/choozi/appb2.js @@ -1,6 +1,3 @@ -//g.setTheme({fg : 0xFFFF, fg2 : 0xFFFF,bg2 : 0x0007,fgH : 0xFFFF,bgH : 0x02F7,dark : true}); - - /* Choozi - Choose people or things at random using Bangle.js. * Inspired by the "Chwazi" Android app * @@ -77,7 +74,7 @@ function arc(minR, maxR, minAngle, maxAngle) { inside.push(centreY+s*minR); outside.unshift(centreY+s*maxR); outside.unshift(centreX+c*maxR); - + var vertices = inside.concat(outside); g.fillPoly(vertices, true); } @@ -133,6 +130,7 @@ function animateChoice(target) { g.fillCircle(x, y, ballSize); oldx=x; oldy=y; + g.flip(); } } @@ -154,7 +152,7 @@ function choose() { // draw the current value of N in the middle of the screen, with // up/down arrows function drawN() { - g.setColor('#000000'); + g.setColor(g.theme.fg); g.setFont("Vector",fontSize); g.drawString(N,centreX-g.stringWidth(N)/2+4,centreY-fontSize/2); if (N < maxN)