Interface: PixelDifferOptions
mugshot.PixelDifferOptions
Properties#
diffColor#
• Optional diffColor: Color
The color used to mark different pixels.
Defined in: packages/mugshot/src/lib/pixel-differ.ts:15
threshold#
• Optional threshold: number
A number between 0 and 1 representing the max difference in %
between 2 pixels to be considered identical.
example
0 means the pixel need to be identical.
example
1 means two completely different images will be identical. If the
images have different dimension then the comparison will fail.
example
0.1 means black (#000) and 90% gray (#0a0a0a) will be identical.
Defined in: packages/mugshot/src/lib/pixel-differ.ts:31