"""A nine-hour day A few addresses side by side in one block have knocked on eske since the first hour anyone was watching, mostly as root (this week, only as root). In the week to 2026-10-25 they kept a clock: about six hours of one knock every five to seven minutes, each knock from whichever of them, then about three hours of silence, over and over, every nine hours to within a minute or two. This is that week cut across like a log. One turn of the grain is nine hours, from the middle outward; each mark is one knock, toned by which of them knocked, and the dark split is the silence. Halfway through the week, on 10-21, the silence came three hours early and lasted twice as long, and from then on it kept the new time, so the split turns there. A second stump, then, beside the first watch's (002), but its rings were measured, not seeded. Only minutes and which-of-them are in this file, no addresses. Planted 2026-10-25 by the seventh weekly watch. """ import math import random # one hex number per knock: (minutes since 2026-10-18 00:00 UTC) * 8 + which of them (0-4, in order of first knock) DATA = """1b50 1b81 1be8 1c1a 1c4a 1c7a 1cb0 1ce1 1d49 1d7a 1dab 1e5a 1ec2 1f28 1f5a 1f8a 1fc1 1ff0 202b 20ba 21bb 21e8 2222 2252 2280 22bb 22e9 2319 2380 2999 29d3 2a00 2a3b 2a6b 2ac8 2b00 2b33 2c29 2c90 2cf0 2d5a 2dbb 2de9 2e1a 2e53 2e80 2eb2 2efa 2f68 2fd1 3002 303b 3068 3098 30c9 3133 3161 3190 31c1 31fb 3229 328a 32bb 3321 3351 3381 33b0 33eb 3419 3449 3479 3a42 3b10 3b4a 3ba8 3c43 3c7a 3cd9 3d0a 3d40 3d73 3da2 3dd9 3e0b 3e73 3ea1 3ed0 3f09 3f38 3f6b 3f9a 404a 4080 40b2 4118 414b 41b1 41e8 4249 4280 42b3 431b 4349 43b0 447a 44b2 44e3 4510 4b1b 4b59 4b8a 4bba 4bf2 4c52 4cb8 4d4a 4d7b 4e10 4e40 4ea1 4ed9 4f0a 4f3a 4f68 5001 5033 5061 509a 50bb 50f1 5123 5183 51b0 5212 5303 5360 5391 53c3 5422 5482 54e2 5511 5543 55d1 5603 5632 5bf9 5c7b 5ca0 5cf2 5d19 5d98 5dc2 5de8 5e3a 5e60 5f01 5f28 5f50 5f79 5fcb 601b 6040 6071 6110 6138 6191 626b 62ea 63d9 6400 6453 64f1 6568 65e1 6680 66aa 66d0 6721 6d0a 6d3a 6d69 6e13 6e91 6f1a 6f42 7041 709b 70f3 714b 7198 71ca 7223 7273 72d3 7300 7329 7402 745b 7483 750a 7532 7559 7589 75e0 7638 76b9 76eb 7713 7738 776b 77c3 7db0 7deb 7e1b 7e72 7e9a 7ef1 7f22 7f7a 7fd3 7ffa 8051 8103 812b 815a 8180 8203 8230 82d8 830a 83b1 83e0 840a 8433 8489 84e2 8539 8561 858a 85b9 85e3 860a 8662 868b 86b9 86e1 873a 8793 87bb 87e3 8811 8891 88b8 88e3 8f22 8f4b 8fca 9078 90a1 90c9 90f8 9122 9178 9222 9279 92a1 92fb 93a3 93ca 9422 9430 9468 9492 9573 9599 95f3 9620 9648 9679 96a3 96ca 9722 9752 977a 97a9 97d0 9802 982a 9858 98ab 98d9 9989 9f70 9fda a032 a05b a089 a0b3 a169 a1c0 a1f1 a219 a249 a270 a2a2 a322 a350 a401 a4aa b0b1 b0d8 b130 b15a b18b b1b2 b1db b231 b25b b28a b2d9 b303 b359 b432 b4a9 b4da b501 b559 b5d9 bbc3 bc49 bc71 bcf2 bd18 bdc9 bdf2 be48 be73 bec3 bef1 bf1b bfc2 bff3 c041 c098 c0e8 c11a c161 c18a c1e1 c211 c238 c262 c2b9 c312 c33b c3ba c411 c443 c4c1 c541 c590 c5c0 c610 c668 c698 cca0 ccd2 cd28 cdab ce28 ce82 ceab ced9 cf01 cf89 cfb0 cfe0 d008 d032 d08a d0b9 d0f3 d132 d168 d1e3 d2d3 d308 d348 d382 d43a d472 d4b3 d4eb d520 d563 d59a d5da d610 d649 d6c2 d6f8 d73a d773 dd9b de53 de93 decb df0a df40 dfc0 dff9 e072 e0b2 e0f2 e128 e168 e1a0 e1e1 e222 e259 e29b e2d0 e331 e370 e3f2 e430 e468 e4a8 e4eb e560 e5a0 e61a e658 e6d0 e713 e78b e7ca e883 eeba efb0 efea f029 f068 f0a9 f0e3 f122 f160 f1d9 f219 f25a f292 f2d1 f313 f348 f389 f412 f453 f493 f509 f58b f5c9 f603 f640 f6fa f73a f773 f7b2 f833 f868 f8aa f8ea f922 f960 ff53 10010 10050 1010a 1014a 101cb 10203 10243 10280 102f9 1033a 103f2 10433 10473 104f2 10533 10572 105aa 105ea 10621 10662 106da 10718 10752 10793 107d0 1080a 10849 108c1 10901 10939 1097b 109b3 109f2 10a2a 11032 110a8 110ea 11120 11198 111d2 11213 11249 1128a 112c3 112f9 11339 11371 113b1 113ea 11461 11498 114db 11510 11551 115d3 11611 11652 11690 116c9 11708 11748 11781 117c3 11801 11843 1187b 118ba 1193a 11971 119f1 11a28 11a6b 11aa8 11ae9 11b21 12110 12192 121d3 12211 12248 1228a 122c9 12308 123c2 12402 12439 12479 124ba 12533 12571 125b0 125eb 1262b 126ab 12732 1276b 127a9 12863 12898 128cb 12930 12960 1299b 129cc 12a03 12a32 12a98 12ac9 12b01 12b30 12b6c 12b98 12bd0 12c02 131e3 1321a 13252 13283 132bc 132e8 13350 1338c 13422 13452 13489 134eb 13523 13550 13584 135bc 1361b 13653 13684 136b9 136e8 13719 13783 137bc 137e8 13824 13851 13889 138ba 138f4 13922 139f1 13a20 13a59 13a8c 13ab8 13af3 13b21 13b5c 13b8b 13bb9 13c23 13c5a 13cbb 142c0 142fc 14360 14391 143cb 143fa 14430 14461 14491 144cb 144fb 1452c 14564 14592 14629 14663 14692 146c0 146f9 14793 147c0 147f9 14864 14899 148cc 14902 14932 14964 1499a 149cb 14a00 14a34 14a62 14a9a 14ac9 14b04 14b31 14b63 14bca 14bf8 14c61 14c92 14cc1 14cf9 14d2c 14d59 14d91 153a0 153db 15409 15443 15471 154a9 154d8 15513 15541 15574 155a8 155da 15612""" KNOCKS = [(v // 8, v % 8) for v in (int(x, 16) for x in DATA.split())] W = H = 480 CX = CY = 240 R0, DR = 18, 10.2 # radius at hour 0, and growth per nine-hour turn PERIOD = 9 * 60 # minutes SILENT = 150 # a gap this long (minutes) is drawn as part of the split rng = random.Random(9) TONES = ["#5a3920", "#6e4526", "#4a321f", "#7b5230", "#3d2818"] def at(m, dr=0.0): turn = m / PERIOD a = turn * math.tau r = R0 + turn * DR + dr return CX + r * math.sin(a), CY - r * math.cos(a) def spiral(m0, m1, dr=0.0, step=4): n = max(2, int((m1 - m0) / step)) return " L ".join("%.1f %.1f" % at(m0 + (m1 - m0) * i / n, dr) for i in range(n + 1)) m_first, m_last = KNOCKS[0][0], KNOCKS[-1][0] r_out = R0 + m_last / PERIOD * DR + DR * 0.6 out = [f'', f'', '' '' ''] # bark: an uneven dark rim pts = [] for i in range(180): a = i / 180 * math.tau r = r_out + 8 + rng.uniform(-2.2, 2.2) pts.append("%.1f %.1f" % (CX + r * math.sin(a), CY - r * math.cos(a))) out.append(f'') out.append(f'') # the pith, and the grain before the week began, as plain rings out.append(f'') out.append(f'') # the week's grain out.append(f'') # the split: every long silence, as a dark band along the grain for (a, _), (b, _) in zip(KNOCKS, KNOCKS[1:]): if b - a >= SILENT: for dr, w, op in ((0, DR * 0.6, 0.18), (0, DR * 0.2, 0.75)): out.append(f'') # the knocks for m, who in KNOCKS: turn = m / PERIOD a = turn * math.tau r = R0 + turn * DR h = DR * rng.uniform(0.28, 0.4) x1, y1 = CX + (r - h) * math.sin(a), CY - (r - h) * math.cos(a) x2, y2 = CX + (r + h) * math.sin(a), CY - (r + h) * math.cos(a) out.append(f'') out.append("") print("\n".join(out))