Hacker News new | past | comments | ask | show | jobs | submit login

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-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)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: