From 853968a447343aeb433bd55776873c4fd0221ab8 Mon Sep 17 00:00:00 2001 From: PAlexanderFranklin Date: Thu, 1 Aug 2024 21:12:19 -0700 Subject: [PATCH] change black pixels to a random shade --- src/screenmonitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/screenmonitor.py b/src/screenmonitor.py index 213e94f..3523ea2 100644 --- a/src/screenmonitor.py +++ b/src/screenmonitor.py @@ -29,7 +29,8 @@ def capture_screenshot(): for _ in range(black_pixels_count): x = random.randint(0, width - 1) y = random.randint(0, height - 1) - pixels[x, y] = (0, 0, 0) + shade = random.randint(0, 255) + pixels[x, y] = (shade, shade, shade) # Make 1% of the pixels copy themselves to their 8 neighbors for _ in range(neighbor_copy_pixels_count):