Cyberpunk 2077 look for the server view, refreshed every second

Rajdhani font (OFL), chamfered/glitch drawing kit, Docker list every 5 s and process
ranking over 3 s windows so the 1 s refresh stays cheap and calm.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
rickzkmandClaude Sonnet 5.5 committed 2026-10-22 14:40:06 +02:00
1 parent edba341f30
commit 5e64bfb64e
15 files changed
+524 -95

No files matched your search

+8
View File
@@ -7,3 +7,11 @@ def count_colour(img: Image.Image, colour, box=None) -> int:
if box is not None:
img = img.crop(box)
return int((np.asarray(img.convert("RGB")) == np.array(colour)).all(axis=2).sum())
def count_near(img: Image.Image, colour, tolerance: int = 70, box=None) -> int:
"""Pixels within `tolerance` (per channel) of `colour`: for anti-aliased text, which is never exactly pure."""
if box is not None:
img = img.crop(box)
diff = np.abs(np.asarray(img.convert("RGB")).astype(int) - np.array(colour))
return int((diff.max(axis=2) <= tolerance).sum())