From 64e6d7242cd4a9af0707906cdacd20a5a0d95f3a Mon Sep 17 00:00:00 2001 From: Florin Tobler Date: Thu, 28 Jul 2022 17:01:44 +0200 Subject: [PATCH] adjust clock face --- clock_pillow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clock_pillow.py b/clock_pillow.py index 1db4b1b..24633c9 100644 --- a/clock_pillow.py +++ b/clock_pillow.py @@ -22,7 +22,7 @@ def rrc(tuple, center, angle): return (int(tpl[0] * sin + tpl[1] * cos + center[0]), int(-tpl[0] * cos + tpl[1] * sin + center[1])) -def draw_clock(size=(800, 480), pixelformat="RGBA", r=210, aliasing=None): +def draw_clock(size=(800, 480), pixelformat="RGBA", r=230, aliasing=None): if aliasing != None: size = (size[0] * aliasing, size[1] * aliasing) r *= aliasing @@ -37,7 +37,7 @@ def draw_clock(size=(800, 480), pixelformat="RGBA", r=210, aliasing=None): for i12 in range(12): for i5 in range(5): angle = (i12 * 5 + i5) / 60 * 2 * math.pi - len = r * 0.93 if i5 == 0 else r * 0.97 + len = r * 0.85 if i5 == 0 else r * 0.95 thick = int((5 if i5 == 0 else 2) * r/180) sin = math.sin(angle) cos = math.cos(angle)