Fix comments

This commit is contained in:
PAlexanderFranklin 2024-08-02 13:51:08 -07:00
parent 56440d1235
commit 75a7d0486c

View File

@ -21,11 +21,12 @@ def capture_screenshot():
# Apply blur
blurred_screenshot = screenshot.filter(ImageFilter.GaussianBlur(10))
# Randomly turn 10% of the pixels black
# resize
width, height = blurred_screenshot.size
width, height = width // 5, height // 5
blurred_screenshot = blurred_screenshot.resize((width, height), Image.NEAREST)
# Randomly turn 10% of the pixels grey
pixels = blurred_screenshot.load()
total_pixels = width * height
black_pixels_count = int(total_pixels * 0.1)