Code for fading in and out while also changing colour.

Hi there Im having trouble with coding a specific task on my Arduino Uno. I’ve set up a simple RGB LED circuit. I’m trying to write code, which slowly increases the brightness of an RGB LED for 4 seconds, then sustain maximum brightness for 7 seconds, then slowly fade out for 8 seconds. While this is happening, it should also fade from yellow to orange and finally red. Any help would be appreciated. Thanks.

https://pastebin.com/HzsxmMuJ

Your code seems fine. Is there something wrong?

What are the issues you have.

Surely you have run the code and something happened.

Can you describe what happened and what you want it to do differently?