| 104 | } |
| 105 | |
| 106 | int count_diff_pixels(const CRGB *a, const CRGB *b, int count) { |
| 107 | int diff = 0; |
| 108 | for (int i = 0; i < count; i++) { |
| 109 | if (a[i].r != b[i].r || a[i].g != b[i].g || a[i].b != b[i].b) { |
| 110 | diff++; |
| 111 | } |
| 112 | } |
| 113 | return diff; |
| 114 | } |
| 115 | |
| 116 | } // namespace flowfield_fp_test |
| 117 |