Coh3n/SRL-5 — comment on commit 5d901acc35e9d815b3a60a303d05591f0ac6dace
File:  line 0
By Zyt3x:

Dude..?! Do you even understand what that line does?

It searches in a 24x24 area for pixels of the color 5005422 with the tolerance of 55. a 24x24 area is 576 pixels. CountColorTolerance returns the amount of pixels within the color range set.
As of right now ( with the count *as high as 600*; more than the amount of pixels in the search area), it will *ALWAYS* return true..
You might have stopped false negatives, but now you will have a lot of false positives...

When I made that function, the count was set to 81 or something like that, and I found that number by carefully picking color and tolerance; and making sure there were no false positives / false negatives.

This function requires a re-write...