patterns start over at 8 randomly???

This commit is contained in:
jane 2021-05-26 10:56:54 -04:00
parent df986ff032
commit 38cd9cf64d

View file

@ -48,13 +48,17 @@ export function tick() {
if (next_pattern[i] != pixels[i]) {
if (next_pattern[i] == pixel_cache[i]) {
console.log("INCONGRUENCE WITH " + i);
pixels[i] = next_pattern[i]
pixels[i] = next_pattern[i];
}
else {
changed = true;
fade(i);
}
}
else if (pixel_cache[i] != next_pattern[i]) {
console.log("PATTERN NOT STORED " + i);
pixel_cache[i] = next_pattern[i];
}
}
if (!changed) {
tick_pattern();