This fades the palette palette from its current state towards the rgb-values in RGB and then returns the faded palette.
palette must be a length-256 sequence of length-3 sequences, specifying a palette.
RGB must be a length-3 sequence, specifying the red, green and blue values of the color.
fade_steps is a value (0-63) specifying how many steps to fade (63=total fade).
delay is a value specifying how fast/slow the fading should be done (3 is a good value).
If you only want to change the palette sequence and not the hardware palette, you can use the constant no_fading.