Closed KaceCM closed 1 year ago
Thanks! Can we keep the error message anyway?
Or what exactly is idx%len(colors) doing? Just repeating the first color after the last one is reached?
Yes of course we can keep the message, I'm going to add a couple of lines to make it even better.
idx%len(colors) means that, for a given tuple "colors", if the number of images is longer than this tuple length, it will repeat from the first color. I had a problem using 20 images, so I did this correction and thought it would be useful for people !
By the way, thank you for this insane package !
I have added a warning message, with instructions for those who wish to add their own colours. Otherwise, it loops the default colors.
Let me know if anything is missing, or if you need anything else !
I have now corrected all your requests, tell me if everything is correct now !
Thanks a lot! :)
Before this correction, the function raised "ValueError("Not enough default colors! Pass additional " 'colors to "colors" parameter')", but we couldn't pass additional colors.
To avoid this problem and to make it easier, the correction takes the 9 known colors (Blue, Red, Green, Yellow, Magenta, Pink, Gray, Brown, Orange), and loop over them if needed.