Just like you can fade the palette to black, a SOLID black color, everything is black, there has GOT to be a way to fade the palette to a different color, such as red, green, or any other color that's on the palette.
How would I go about doing it though? I'd have to either use a table, but that leaves less flexibility.
Seems like there's no easy way to do this without using a table. o_O
Well, let me think for a sec...
To make a simple gradient, you add color x to color y, gradually. To fade from cyan to red, I add red to the cyan, which makes white, I half the color, making grey, and remove the not-red components, and add the red back, making red.
To fade from red to green, I add green to red, making yellow, half it, making a weird color, remove the red from the weird color, and re-add green, and green comes out.
It's just a matter of converting this logic into the number form, following the nes palette.
It'll be easier to work with a visual.
Any other suggestions?