Thread: Colour fading?
View Single Post
Old 13 December 2010, 15:26   #1
h0ffman
Registered User
 
Join Date: Aug 2008
Location: Salisbury
Posts: 746
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.
h0ffman is offline  
 
Page generated in 0.04335 seconds with 11 queries