Creating a 4-color gradient

Hello,

I need to create a 4 color radial gradient based on user input. Is this possible to do? I’ve only seen how to create a 2 color gradient.

Any suggestions would be really helpful!

Thanks,
Jason