UNPKG

fast-average-color

Version:

A simple library that calculates the average color of images, videos and canvas in browser environment.

7 lines (6 loc) 265 B
export function isIgnoredColor(arr, num, ignoredColor) { return arr[num] === ignoredColor[0] && // red arr[num + 1] === ignoredColor[1] && // green arr[num + 2] === ignoredColor[2] && // blue arr[num + 3] === ignoredColor[3]; // alpha }