Unicorn pHAT coding

Hello! So I’m very new to all this. I’ve been trying to figure out how I can control the RGB color on the unicorn. I want it fade to different colors over a specified time. I can’t find any examples of this being done and was wondering if i can get pointed in the right direction. thanks!

I always found this to be a good starting point :