PyQt5 - Non Linear Gradients - What is best way to implement?

I think I may have finished my wacky widget XD
might need some retouches but it is there.

I placed a explanation about it here: