Hi i am working on a loop that will get the value of colours that are in the image and then fade them - once the image has faded i want it to move on to a next image

I am having trouble getting the loop it either multiply the colours by 10 each time the loop is incremented

Can anyone help?