Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PIL import Image
- #Open image with shell input
- image=Image.open((input("Bitte den Namen des Bildes eingeben. (z.B. profilepic.png): ")))
- size=width,height=image.size
- for i in range(width):
- print("//IMAGE COLUMN", i+1)
- for j in range(height):
- #coordinate = i,j
- r,g,b=(image.getpixel((i,j))) #Get pixel at coordinate
- print("leds[",j,"] = CRGB(",r, "," ,g, ",", b, ");") #print pixel colorchange to console
- print("FastLED.show();")
- print("delay(delaytime);")
- del image
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement