Drag-and-drop a rectangle around the area you want to scan. The simpler the picture, the larger the pen size, and the smaller the scan area, the faster it should go.
OPTIMIZATIONS • Keeps a list of all the past colors used and checks those first (starting with the most recent) • Separates color detection and drawing into 2 distinct steps. • Doesn't lift pen between dots to save time and avoid weird grid patterns. CREDITS • Color detection by @frodewin