Loading

Paste #pyv9hcspa

  1. old:
  2.       if pixAlpha >= alpha_ignore:
  3.         for colour_id in filtered_colours_to_filter:
  4.           ..
  5.  
  6. new:
  7.   pixcache = dict()    // before y loop
  8.  
  9.       if pixAlpha >= alpha_ignore:
  10.         winnerID = pixcache.get(pix)
  11.         if not winnerID:
  12.           for colour_id in filtered_colours_to_filter:
  13.             ..
  14.         pixcache[pix] = winnerID;

Comments