/[gzz]/gzz/test/tools/gfx.py
ViewVC logotype

Diff of /gzz/test/tools/gfx.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tjl, Wed Oct 16 07:46:39 2002 UTC revision 1.5 by tjl, Sun Oct 20 09:33:17 2002 UTC
# Line 26  def getAvgColor(x, y, w, h): Line 26  def getAvgColor(x, y, w, h):
26    
27  def checkAvgColor(x, y, w, h, color, delta=10):  def checkAvgColor(x, y, w, h, color, delta=10):
28      real = getAvgColor(x, y, w, h)      real = getAvgColor(x, y, w, h)
29      msg = str((color, real))      msg = str((color, real, ":", x, y, w, h))
30    
31      for i in range(0,3):      for i in range(0,3):
32          if abs(color[i]-real[i]) > delta:          if abs(color[i]-real[i]) > delta:
# Line 35  def checkAvgColor(x, y, w, h, color, del Line 35  def checkAvgColor(x, y, w, h, color, del
35    
36  def checkNotAvgColor(x, y, w, h, color, delta=10):  def checkNotAvgColor(x, y, w, h, color, delta=10):
37      real = getAvgColor(x, y, w, h)      real = getAvgColor(x, y, w, h)
38      msg = str((color, real))      msg = str((color, real, ":", x, y, w, h))
39    
40      for i in range(0,3):      for i in range(0,3):
41          if abs(color[i]-real[i]) > delta:          if abs(color[i]-real[i]) > delta:

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26