Playing with gradients with libmplot

I need to paint some gradients for some code I’m playing with at the moment, so I’ve been trying to decide how to tweak libmplot to do gradients. I think Bezier curves might be working for me. Whatcha think?