patterns start over at 8 randomly???
This commit is contained in:
parent
df986ff032
commit
38cd9cf64d
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue