diff options
author | Gary Martin <gary@garycmartin.com> | 2012-10-09 20:22:21 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2012-10-09 20:22:21 (GMT) |
commit | 9a0061929ab17c47948d6be437a01b34a5ebb59d (patch) | |
tree | b02cd803796d6e6511c1636cfa780c7ca047ffbf | |
parent | 6efb29e1c7b3cd726e36f95dafda1b8c45f9b878 (diff) |
Swap length of second hand and minute hand so that numbers are obscured less often.
-rwxr-xr-x | clock.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -789,9 +789,9 @@ class ClockFace(gtk.DrawingArea): cr.arc(self._center_x, self._center_y, 4 * self._line_width, 0, 2 * math.pi) cr.fill_preserve() cr.move_to(self._center_x, self._center_y) - cr.line_to(int(self._center_x + self._radius * 0.8 * + cr.line_to(int(self._center_x + self._radius * 0.7 * math.sin(math.pi / 30 * minutes)), - int(self._center_y + self._radius * 0.8 * + int(self._center_y + self._radius * 0.7 * - math.cos(math.pi / 30 * minutes))) cr.stroke() @@ -802,9 +802,9 @@ class ClockFace(gtk.DrawingArea): cr.arc(self._center_x, self._center_y, 3 * self._line_width, 0, 2 * math.pi) cr.fill_preserve() cr.move_to(self._center_x, self._center_y) - cr.line_to(int(self._center_x + self._radius * 0.7 * + cr.line_to(int(self._center_x + self._radius * 0.8 * math.sin(math.pi / 30 * seconds)), - int(self._center_y + self._radius * 0.7 * + int(self._center_y + self._radius * 0.8 * - math.cos(math.pi / 30 * seconds))) cr.stroke() |