The task:
Make a function to fade from the current bgColor to a new user-specified colour. |
||||||||
Sub task:
Get user input |
Sub task:
Fade from current colour to new colour |
|||||||
Sub task:
Convert current bgColor to decimal |
Sub task:
Calculate steps between current colour and new colour |
Sub task: | ||||||
Sub task:
Extract individual RGB values from hex number |
Sub task:
Convert from hex to decimal |
Sub task:
Calculate difference between old and new RGB values |
Sub task:
Find minimum difference that is != 0 |
Sub task:
Calculate total number of steps to new colour, and individual increments. |