How to use the looks-same.colors function in looks-same

To help you get started, we’ve selected a few looks-same examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gemini-testing / gemini / lib / calibrator.js View on Github external
function compare_(x) {
        var color = pickRGB(image.getRGBA(x, row));
        return looksSame.colors(color, searchColor);
    }
}

looks-same

Pure node.js library for comparing PNG-images, taking into account human color perception.

MIT
Latest version published 3 months ago

Package Health Score

78 / 100
Full package analysis