| 1 | // Compares two directories of rendered PNGs (baseline vs new) pixel-wise. |
| 2 | // Usage: node test/performance/compareImages.mjs <dirA> <dirB> [diffThreshold] [maxDiffImages] |
| 3 | // Writes red-overlay diff images for the worst offenders next to dirB as *_DIFF.png. |
| 4 | import FS from "fs"; |