MCPcopy Create free account
hub / github.com/FastLED/FastLED / count_diff_pixels

Function count_diff_pixels

tests/fl/fx/2d/flowfield.hpp:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106int 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

Callers 1

flowfield.hppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected