even better
This commit is contained in:
		| @@ -1,10 +1,13 @@ | |||||||
| import unicorn | import unicorn | ||||||
|  |  | ||||||
| led = unicorn.UnicornHat(32,16) | led = unicorn.UnicornHat(32,16) | ||||||
|  | r = 0 | ||||||
|  | b = 0 | ||||||
| for i in range(16*32): | for i in range(16*32): | ||||||
|     x = i % 32 |     x = i % 32 | ||||||
|     y = i // 32 |     y = i // 32 | ||||||
|     led.set_pixel(x,y, 10, 200, 30) |     r += (x % 16 == 0)*5 | ||||||
|  |     b+= (y % 16 == 0)*5 | ||||||
|  |     led.set_pixel(x,y, r, 200, b) | ||||||
|     if i%2 == 0: |     if i%2 == 0: | ||||||
|         led.show() |         led.show() | ||||||
		Reference in New Issue
	
	Block a user
	 Remy Moll
					Remy Moll