diff --git a/__pycache__/cfd_animated_icon.cpython-312.pyc b/__pycache__/cfd_animated_icon.cpython-312.pyc index cb8c8e4..da42414 100644 Binary files a/__pycache__/cfd_animated_icon.cpython-312.pyc and b/__pycache__/cfd_animated_icon.cpython-312.pyc differ diff --git a/cfd_animated_icon.py b/cfd_animated_icon.py index acbaf47..9bb9a29 100644 --- a/cfd_animated_icon.py +++ b/cfd_animated_icon.py @@ -132,12 +132,12 @@ class AnimatedIcon(tk.Canvas): radius = min(center_x, center_y) * 0.8 bbox = (center_x - radius, center_y - radius, center_x + radius, center_y + radius) - start_angle1 = -self.angle * 180 / pi - extent1 = 120 + 60 * sin(-self.angle) + start_angle1 = self.angle * 180 / pi + extent1 = 120 + 60 * sin(self.angle) self.draw.arc(bbox, start=start_angle1, end=start_angle1 + extent1, fill=self.highlight_color_rgb, width=5) - start_angle2 = (-self.angle + pi) * 180 / pi - extent2 = 120 + 60 * sin(-self.angle + pi / 2) + start_angle2 = (self.angle + pi) * 180 / pi + extent2 = 120 + 60 * sin(self.angle + pi / 2) self.draw.arc(bbox, start=start_angle2, end=start_angle2 + extent2, fill=self.color_rgb, width=5) def _draw_pillow_counter_arc(self):