oh my god i fucked up the rgb_to_int thats why it doesnt work
This commit is contained in:
		
							parent
							
								
									e73e25aa30
								
							
						
					
					
						commit
						343df4cba5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -10,7 +10,7 @@ var next_pattern = new Uint32Array(cfg.leds); | ||||||
| var pattern = {} | var pattern = {} | ||||||
| 
 | 
 | ||||||
| function rgb_to_int(r, g, b) { | function rgb_to_int(r, g, b) { | ||||||
|   return ((r << 8) + g) << 8 + b; |   return (((r << 8) + g) << 8) + b; | ||||||
| } | } | ||||||
| function int_to_rgb(int) { | function int_to_rgb(int) { | ||||||
|   var r = int >> 16 & 0xFF; |   var r = int >> 16 & 0xFF; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue