Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def returnColors():
- |just assigning the variables
- img = Image.open(src).load() |
- cList = []
- for o in range(Image.open(src).size[1]): |iterates through the image
- for i in range(Image.open(src).size[0]): |appending color data to cList
- cList.append(img[i, o]) |
- lSize = len(cList)
- print("The source image is equal to", lSize, "px.") |Here's the important bit
- print("") |
- command=input(''' What would you like to do? You can say:|
- |
- get all |
- get unique |
- |
- ''') |
- The source image is equal to 512 px.
- What would you like to do? You can say...
- get all
- get unique
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement