From 286a5ffe2deb9d3a8e047ecb44b7724079b0271e Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 27 Dec 2020 18:19:02 +0000 Subject: [PATCH] apps: chrono: Minor visual improvements Make the ticks and hands larger and shorten the hands slightly to avoid visual glitches during "undraw". Signed-off-by: Daniel Thompson --- wasp/apps/chrono.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wasp/apps/chrono.py b/wasp/apps/chrono.py index 63a8e23..a327127 100644 --- a/wasp/apps/chrono.py +++ b/wasp/apps/chrono.py @@ -74,7 +74,7 @@ class ChronoApp(): # Draw the dividers draw.set_color(mid) for theta in range(12): - draw.polar(120, 120, theta * 360 // 12, 111, 119, 2) + draw.polar(120, 120, theta * 360 // 12, 110, 118, 3) self._hh = 0 self._mm = 0 @@ -87,8 +87,8 @@ class ChronoApp(): # Undraw old time hh = (30 * (self._hh % 12)) + (self._mm / 2) mm = 6 * self._mm - draw.polar(120, 120, hh, 5, 80, 5, 0) - draw.polar(120, 120, mm, 5, 110, 3, 0) + draw.polar(120, 120, hh, 5, 75, 7, 0) + draw.polar(120, 120, mm, 5, 106, 5, 0) # Record the minute that is currently being displayed self._hh = now[3] @@ -97,6 +97,6 @@ class ChronoApp(): # Draw the new time hh = (30 * (self._hh % 12)) + (self._mm / 2) mm = 6 * self._mm - draw.polar(120, 120, hh, 5, 80, 5, hi) + draw.polar(120, 120, hh, 5, 75, 7, hi) draw.polar(120, 120, hh, 5, 60, 3, lo) - draw.polar(120, 120, mm, 5, 110, 3, hi) + draw.polar(120, 120, mm, 5, 106, 5, hi)