Colour fading?
One of the things I'd like to do soon is some colour fades, for example black to the colour of a logo / white to the colour of a logo.
I think they way to move forward would be to have two palletes, source colours and destination colours. You then loop through each colour, split out the 3 x 4bit colours, add 1 to each and compare each against the destination colour which will build up the current colour. Loop through the routine $f times to ensure all colours reached destination.
Just wondering if this is a good way of doing it, or if there is a quicker / better method.
|