im c.
This commit is contained in:
		
							parent
							
								
									a24ea4d300
								
							
						
					
					
						commit
						e73e25aa30
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -35,10 +35,10 @@ function tick_pattern() { | ||||||
|   console.log("TICKING PATTERN") |   console.log("TICKING PATTERN") | ||||||
| 
 | 
 | ||||||
|   for (let i = 0; i < cfg.leds; i++) { |   for (let i = 0; i < cfg.leds; i++) { | ||||||
|     var r = Math.floor(Math.random() * 100) |     var r = Math.floor(Math.random() * 256) | ||||||
|     var g = Math.floor(Math.random() * 100); |     var g = Math.floor(Math.random() * 256); | ||||||
|     var b = Math.floor(Math.random() * 100); |     var b = Math.floor(Math.random() * 256); | ||||||
|     next_pattern[i] = ((r << 8) + g) << 8 + b; |     next_pattern[i] = rgb_to_int(r, g, b); | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue