This question already has an answer here:
- Paint by Numbers 4 answers
This is a successor to my previous Code Golf challenge, which may be found here.
This time, you are trying to determine what the contents of colors.txt should be.
Your task is to take from the input the path to an image and a number of colours, and write to colors.txt a list of that many colors chosen for that image.
Remember, you are generating pallettes to go with this challenge.
As usual, you are going for lowest score, but in this case, your score is given by
ceil(codeSize/(1+max(0,votes))), so upvotes will help you as well.
For one or more of the following images, you should test your generated pallettes (using one of the answers from this challenge to test them) and post the results for a variety of pallette sizes: