Just press the flag. There are about 36 lines. Turn on turbo mode by holding shift and pressing the green flag to make it go faster. This is the slower version. It has better accuracy but takes quite a while. It doesn't lag at all.
I used @SMSARVER 's color detector. Not good quality and really slow. Some colors will stop it. Still trying to find out why.