Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
while True:
for infile in glob.glob("pride/*.png"):
im = Image.open(infile)
pixel_grid = list(im.getdata())
for channel in range(8):
pixels = pixel_grid[channel:-1:8]
for num, pixel in enumerate(pixels):
pixel = darken_color(pixel[0], pixel[1], pixel[2], factor=0.3)
set_pixel(mote_hosts, channel + 1, num, pixel[0], pixel[1], pixel[2])
motes_show()
time.sleep(0.4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment