From 2dd621b2a1aed2bbdc6a30147fa03f4d5dd28b1b Mon Sep 17 00:00:00 2001 From: jim kolpack Date: Fri, 9 Oct 2026 15:54:49 -0400 Subject: [PATCH] Make scanline spacing symmetric (8,20) skip set left gaps of 4,8,4,8,4,4 -- uneven, since the trailing two gaps were both 4 instead of alternating. Removing two slots exactly opposite each other in the 8-slot cycle (0 and 16) is the most even spacing achievable while keeping every line on a multiple of SCANLINE_PERIOD: gaps come out 4,4,8,4,4,8, symmetric. --- subwave_nowplaying.star | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/subwave_nowplaying.star b/subwave_nowplaying.star index 8c0edc5..4641c49 100644 --- a/subwave_nowplaying.star +++ b/subwave_nowplaying.star @@ -558,7 +558,12 @@ def _glitch_scanlines(): # positions instead of the last two in the run -- which left an 8px # gap with nothing in it at the bottom of every cycle -- spreads the # resulting two, slightly-larger gaps across the full height instead. - SCANLINE_SKIP = (8, 20) # keeps a line at y=28, near the bottom edge + # Removing two slots exactly opposite each other (half the 8-slot + # cycle apart) is the most even spacing achievable while keeping every + # line on a multiple of SCANLINE_PERIOD: gaps come out 4,4,8,4,4,8 -- + # symmetric, vs. e.g. removing two adjacent-ish slots which leaves an + # uneven 4,8,4,8,4,4 pattern. + SCANLINE_SKIP = (0, 16) tall = ART_SLOT + SCANLINE_PERIOD lines = [] for y in range(tall):