diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-12-27 18:19:02 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-12-27 18:19:07 (GMT) |
| commit | 286a5ffe2deb9d3a8e047ecb44b7724079b0271e (patch) | |
| tree | b1e40fb974ffe0f2c7e26b8a4ad7ebbf83107af1 /wasp/apps/chrono.py | |
| parent | b7c622c03d360975eb4337414fe0c80abae2649b (diff) | |
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 <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/apps/chrono.py')
| -rw-r--r-- | wasp/apps/chrono.py | 10 |
1 files 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) |
