Scanning Image Pixel by Pixel in Python

Prompt

Result