               grayArr.push(gray);
                        }
                        return grayArr;
                    };

                    const colorDiff = (arr0, arr1) => {
                        const gray0 = colorGray(arr0);
                        const gray1 = colorGray(arr1);
                        let diffs = [];
                        for (let i = 0; i < gray0.length; i++) {
                            const delta = Math.abs(gray0[i] - gray1[i]);
                            diffs.push(delt