(error)
| 58 | // Allow each pixel R,G,B component to be off by a few units to account for possible shading |
| 59 | // differences between GPUs. |
| 60 | function dampenError(error) { |
| 61 | return Math.max(error-2, 0); |
| 62 | } |
| 63 | |
| 64 | var total = 0; |
| 65 | var width = img.width; |