Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including pixel-change with all npm packages installed. Try it out:

var pixelChange = require("pixel-change")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

pixel-change v0.0.3

Measure differences between 2 identically sized buffer arrays of gray, rgb, or rgba pixels.

pixel-change

Build Status Build status GitHub issues GitHub license

EXPERIMENTAL. FIRST ATTEMPT AT USING N-API WHICH IS ONLY SUPPORTED ON NODE 8.5 AND UP

Measure differences between 2 identically sized buffer arrays of gray, rgb, or rgba pixels. Backed by c++ libraries iterating pixel buffers, converting to grayscale, measuring differences, and reporting back the percent of pixels that have changed.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free