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] != pixels[i]) { | ||||||
|       if (next_pattern[i] == pixel_cache[i]) { |       if (next_pattern[i] == pixel_cache[i]) { | ||||||
|         console.log("INCONGRUENCE WITH " + i); |         console.log("INCONGRUENCE WITH " + i); | ||||||
|         pixels[i] = next_pattern[i] |         pixels[i] = next_pattern[i]; | ||||||
|       } |       } | ||||||
|       else { |       else { | ||||||
|         changed = true; |         changed = true; | ||||||
|         fade(i); |         fade(i); | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |     else if (pixel_cache[i] != next_pattern[i]) { | ||||||
|  |       console.log("PATTERN NOT STORED " + i); | ||||||
|  |       pixel_cache[i] = next_pattern[i]; | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|   if (!changed) { |   if (!changed) { | ||||||
|     tick_pattern(); |     tick_pattern(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue