2 ms·
Cool :) Just a minor nitpick: you may want to try the library method bmp.find_color() instead of your find_init_color() (http://msanders.github.com/autopy/docu
by meese_ 17y ago
Cool :)
Just a minor nitpick: you may want to try the library method bmp.find_color() instead of your find_init_color() (http://msanders.github.com/autopy/documentation/api-reference/bitmap.html#bmp.find_color http://msanders.github.com/autopy/documentation/api-referenc...), it should be significantly faster.
Also, instead of iterating through the width & height manually, autopy offers this shortcut:
for x, y in bitmap:
do_something(bitmap, x, y)